in reply to Re: map it back jack
in thread map it back jack
UPDATE: runrig pointed out that the my $v can be moved inside the loop, which didn't occur to me as I was rewriting the map to a foreach. I've made that change now.my %myhash; foreach (@elements) { my $v = $_; $v =~ tr/_/ /; $myhash{$_} = $v; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: map it back jack
by Hot Pastrami (Monk) on Dec 16, 2000 at 03:11 UTC |