Or, if you dislike loops:
use v5.16; use List::MoreUtils 'reduce_u'; my @array = qw(alpha beta gamma); reduce_u {say "at position $_ there is $b"} @array;
Greetings,
-jo
In reply to Re: grep { } positional number of element
by jo37
in thread grep { } positional number of element
by leszekdubiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |