There's more than one way to do things | |
PerlMonks |
Re: Need help from the esteemed monks on scoping/hashesby ioannis (Abbot) |
on Jun 05, 2006 at 20:50 UTC ( [id://553698]=note: print w/replies, xml ) | Need Help?? |
The statement %mapping = split; ensures that the
hash is re-initialized with only one key; yet,
the for() loop wants to print the value of more than one key
as it loops through print $mapping{$n} .
In Section
Seekers of Perl Wisdom
|
|