It's a hash so as blazar says you would be better off with values
Still, the for loop does output the values.
It does so along with some "use of uninitialized value" warnings, corresponding to the values 0, 6, 7, 8, 9 of $counter which are not valid keys in your example . (tested with perl 5.6)
In reply to Re: printing array values
by ZlR
in thread printing array values
by texuser74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |