in reply to split every other value
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: split every other value
by Aristotle (Chancellor) on Aug 07, 2004 at 00:11 UTC |