You get trouble with undefined quantities if you go beyond the minimum last index. Your updated code still uses @$arrayref instead of $#$arrayref as the last index of the referenced array.
After Compline,
Zaxo
In reply to Re: Re^2: A classic use of prototypes: map2
by Zaxo
in thread A classic use of prototypes: map2
by tkil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |