Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Hash Keys (strings or numbers?)

by petral (Curate)
on Nov 15, 2001 at 03:29 UTC ( #125458=note: print w/ replies, xml ) Need Help??


in reply to Hash Keys (strings or numbers?)

Leading zero's can turn octal on you:

$ perl -lwe 'print shift() + 4' 012 16 $ perl -lwe 'print 012 + 4' 14 $ perl -lwe'print "012" + 4' 16 $


  p


Comment on Re: Hash Keys (strings or numbers?)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (15)
As of 2015-07-01 16:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (12 votes), past polls