Re: Can't find right printf format



Hubert Gabler <loipersb@xxxxxxxxx> wrote:
Hello,
my problem is very simple, but I cannot find the answer in "Learning
Perl" nor in the manpages:
Which FORMAT in printf makes the numbers 1,2,3,.. look like 001,002,003..?
Hubert

The magic word is "padding".

http://www.google.com/search?q=printf+padding

--
Steven O'Neill steveo@xxxxxxxxx
Brooklyn, NY http://www.panix.com/~steveo
.



Relevant Pages

  • Re: Learning Perl
    ... albeit I've come to understand from your feedback, ... you should not do that - this newsgroup is only about Perl. ... publishing, but it is publishing. ... the advantages of using the Learning Wizard to be ...
    (comp.lang.perl.misc)
  • Re: Learning Perl
    ... About Perl, none, although I've done enough reading of Perl stuff to know ... Seriously - a lot of computer books use ... BB> won't be confusing enough for a complete beginner, ... questions for people who are learning, ...
    (comp.lang.perl.misc)
  • Re: Recommended Programming Language
    ... > Wouldn't VBA be the language he should be using? ... >> sample code in Perl for Windows systems. ... >>> I would like to have the ability to use programming with FrontPage, ... >>> learning Visual Basic as a whole. ...
    (microsoft.public.frontpage.programming)
  • Re: Some Advice.
    ... >>am learning that naming is far more important in C than in Perl. ... >>Writing a program and learning is very fustrating. ... Perl was really bad for that in complex data structures. ... I hope that my code can be seen and I get some advice why ...
    (alt.comp.lang.learn.c-cpp)
  • Re: A Perl Beginner
    ... You want perl itself; you can get more modules later. ... Programming Perl, 3rd Edition, Wall, Christiansen, Orwant ... Learning Perl, 3rd Edition, Schwartz, Phoenix ... Spend a lot of time reading docs and writing small programs. ...
    (comp.lang.perl.misc)