So that leaves us (or at least me) with:
my (@evens, @odds); my @all = (\@evens, \@odds); map { push @{$all[$_ % 2]}, $_ } split /,/, $scalar;
Regards,
PN5
In reply to Re^4: split every other value
by Prior Nacre V
in thread split every other value
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |