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?? |
$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
In Section
Seekers of Perl Wisdom
|
|