Have you tried using each itself.This doesn't work, because this would require $array being a hash reference.
In reply to Re^2: Processing pairs of values from even-sized array
by rovf
in thread Processing pairs of values from even-sized array
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |