in reply to split every other value

Here's an evil trick to do it,

my %hash; %hash = split /,/, $scalar; my @evens = keys %hash; my @odds = values %hash;
That does not preserve order, but each value is the element following its key.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: split every other value
by Aristotle (Chancellor) on Aug 07, 2004 at 00:11 UTC

    That's fine until you have two identical elements in any of the even fields.

    Makeshifts last the longest.