You can’t do that. For that case I suggest a foreach over the array’s indices:
foreach my $i ( 0 .. $#list ) { local $_ = $list[ $i ]; # ... $data->{ IS_LAST } = ( $i == $#list ); # ... }
Makeshifts last the longest.
In reply to Re: Check for next array element.
by Aristotle
in thread Check for next array element.
by rashley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |