in reply to map it back jack
If we accept that the original array is going to be modified:
@myHash{@elements} = map {y/_/ /; $_} @elements;
Update:
Oops, this doesn't quite work. Helps when you test something to actually look at the results. This does the map, and therefor the modification to @elements, before performing the LHS.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: map it back jack
by johannz (Hermit) on Dec 16, 2000 at 05:08 UTC |