Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: padding/substr quirk

by Zed_Lopez (Chaplain)
on Jan 10, 2004 at 21:51 UTC ( #320386=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    bash-2.05b$ perl -MTime::localtime -e 'print "0" .  localtime->mon() +
    + 1, "\n"'
    1
    bash-2.05b$ perl -MTime::localtime -e 'print +("0" . localtime->mon())
    + + 1, "\n"'
    1
    bash-2.05b$ perl -MTime::localtime -e 'print "0" . (localtime->mon() +
    + 1), "\n"'
    01
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2015-01-30 03:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (247 votes), past polls