Re: Can't find right printf format




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
.


Quantcast