in reply to Re: multiple local vars in a foreach loop
in thread multiple local vars in a foreach loop
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: multiple local vars in a foreach loop
by choroba (Cardinal) on Jan 31, 2013 at 11:30 UTC | |
by LanX (Saint) on Jan 31, 2013 at 11:33 UTC | |
by choroba (Cardinal) on Jan 31, 2013 at 11:37 UTC |