|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: noob with hash/data file questionby moritz (Cardinal) |
| on Sep 02, 2008 at 08:19 UTC ( [id://708414]=note: print w/replies, xml ) | Need Help?? |
|
You're constructing a new hash (with the strings $short and $place, not with the values of these variables) and override the existing hash with it. Instead you have to populate the hash like this: $stuff{$short} = $place
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||