http://www.perlmonks.org?node_id=394875


in reply to Re: Help with PHP-to-Perl CPAN bundle
in thread Help with PHP-to-Perl CPAN bundle

foreach my $alias (@array) creates an alias to the @array entry. Mutiple aliases in the loop aren't possible. (In PHP you can do for ($hash => $key, $value) {...} to do multiple aliases)
Unless I'm misunderstanding this (not knowing PHP), then what you are looking for here is each. eg:
while (my ($key, $value) = each %hash ) { .. }
Or am I way off the mark?

C.