Re: Can't find right printf format
- From: Ben Morrow <ben@xxxxxxxxxxxx>
- Date: Mon, 28 Apr 2008 19:21:40 +0100
Quoth Hubert Gabler <loipersb@xxxxxxxxx>:
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
perldoc -f printf says 'printf FILEHANDLE FORMAT, LIST' is equivalent to
'print FILEHANDLE sprintf FORMAT, LIST' (with a caveat), so you need to
look in perldoc -f sprintf. This contains a full list of the conversion
specifiers supported by Perl.
Ben
--
The cosmos, at best, is like a rubbish heap scattered at random.
Heraclitus
ben@xxxxxxxxxxxx
.
- References:
- Can't find right printf format
- From: Hubert Gabler
- Can't find right printf format
- Prev by Date: Re: WWW::Mechanize doesn't always follow_link(text
- Next by Date: FAQ 3.2 How can I use Perl interactively?
- Previous by thread: Re: Can't find right printf format
- Next by thread: Re: Can't find right printf format
- Index(es):