Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: output format changed perl5.8 --> perl 5.10?

by hippo (Curate)
on Apr 25, 2014 at 14:52 UTC ( #1083795=note: print w/ replies, xml ) Need Help??


in reply to output format changed perl5.8 --> perl 5.10?

Call me old-fashioned, but I always use %i for integers. eg:

perl -e 'printf "%2.2i\n", 4;'

which seems to work fine on 5.8.8 and 5.10.1. HTH.


Comment on Re: output format changed perl5.8 --> perl 5.10?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1083795]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2014-09-21 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (173 votes), past polls