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:
Or am I way off the mark?while (my ($key, $value) = each %hash ) { .. }
C.
In reply to Re^2: Help with PHP-to-Perl CPAN bundle
by castaway
in thread Help with PHP-to-Perl CPAN bundle
by gunzip
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |