in reply to map it back jack
I can do it in just one line, but I prefer using just a reverse for statement:
my %myHash; ($myHash{$_} = $_) =~ s/_/ /g for (@elements);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: map it back jack
by ichimunki (Priest) on Dec 16, 2000 at 04:11 UTC |