I had brought this on clpmisc, at map()'s BLOCK [was: "Re: Q: re Inline and Benchmark"] (also available from Google or from Google-beta) and there were fundamentally two kind of reactions, as you can see by yourself:my %hash=map { no strict 'refs'; $_ => \&{$_}; } qw/sol1 sol2 .../; # Pseudo-code
Note: I do know that there are tons of other ways around the issue, e.g. with a do block and the EXPR-form of map.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: map()'s BLOCK and deviations from othogonality...
by rir (Vicar) on Feb 24, 2005 at 14:30 UTC | |
by blazar (Canon) on Feb 24, 2005 at 16:33 UTC | |
by merlyn (Sage) on Feb 24, 2005 at 16:37 UTC | |
by blazar (Canon) on Feb 25, 2005 at 09:37 UTC | |
by tye (Sage) on Feb 24, 2005 at 18:38 UTC | |
by rir (Vicar) on Feb 24, 2005 at 20:24 UTC |