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.
In reply to Re: map it back jack
by johannz
in thread map it back jack
by jettero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |