The problem in your code is,
you are assigning the number of keys in the hash to the variable $key.
Use,
foreach $key (keys %hash){ print $key."\n" }
In reply to Re: hash and it's keys...
by Anonymous Monk
in thread hash and it's keys...
by stan2004
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |