in reply to Re^2: Can this script be Optimized?
in thread Can this script be Optimized?
Actually, I'd say a closer equivalency would be
my @newarray = map { expr } @array;
and
my @newarray; for (@array) { push @newarray, expr; }
Or, conversely
map { expr } @array;
and
for (@array) { expr; }
or
expr for @array;
Anyway, as that was a reply to my post, were you suggesting I replace a map with a for, or vice versa? Or, perhaps, something else?
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can this script be Optimized?
by RonW (Parson) on May 01, 2014 at 17:22 UTC | |
by kcott (Archbishop) on May 01, 2014 at 18:51 UTC |