Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Hash element that won't print. Perl Bug???

by snowcrash (Friar)
on Oct 10, 2001 at 09:12 UTC ( [id://117930]=note: print w/replies, xml ) Need Help??


in reply to Hash element that won't print. Perl Bug???

$hash{00} is actuallay the same as $hash{0} because the key is a number and so is not interpreted as a string. if you would use warnings or the -w switch you would have spotted this one easier.
btw: i recently found out that $hash{1_000} is the same as $hash{1000} cos perl allows to use the underscore for legibility in larger numbers like 123_324_234.
hth
snowcrash

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found