DB<156> while (my ($key, $value) = each @a) { print "$key, $value" } +;; Type of arg 1 to each must be hash (not array dereference) at (eval 13 +5)[multi_perl5db.pl:644] line 2, near "@a) "
Cheers Rolf
In reply to Re^2: multiple local vars in a foreach loop
by LanX
in thread multiple local vars in a foreach loop
by shawnkielty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |