Here's an evil trick to do it,
That does not preserve order, but each value is the element following its key.my %hash; %hash = split /,/, $scalar; my @evens = keys %hash; my @odds = values %hash;
After Compline,
Zaxo
In reply to Re: split every other value
by Zaxo
in thread split every other value
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |