in reply to Re^2: Need help with perl syntax.
in thread Need help with perl syntax.
is more or less equivalent tomy @y = map { ... } @x;
my @anon; for (@x) { push @anon, do { ... }; } my @y = @anon;
Yes it can be simplified, which I proceeded to do in the next snippet.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Need help with perl syntax.
by jwkrahn (Abbot) on Mar 14, 2008 at 19:10 UTC | |
by ikegami (Patriarch) on Mar 14, 2008 at 21:18 UTC |