Update: LanX is (of course) correct.
Not with foreach, but you can do it using while and each:
my %hash; while (my ($key, $value) = each %hash) { ... }
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: multiple local vars in a foreach loop
by roboticus
in thread multiple local vars in a foreach loop
by shawnkielty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |