XP is just a number | |
PerlMonks |
Re: hash problemby robartes (Priest) |
on Jun 08, 2005 at 08:56 UTC ( [id://464597]=note: print w/replies, xml ) | Need Help?? |
I don't know whether this is part of a larger script, but $refnum never gets set in this snippet, so you are storing your data in a hash entry with an empty key. That's why the entry with key '1' is Perhaps in the while loop you meant: $names{$ref}=$str;Update: stop inventing new verbs CU
In Section
Seekers of Perl Wisdom
|
|