On Fri, Sep 16, 2011 at 2:55 PM, Paul Johnson <p...@pjcj.net> wrote: > map EXPR, @a is just the same as map { EXPR } @a.
The part that I find confusing is that EXPR is evaluated against each $_, as opposed to once when map is called, passing the resulting value into map. :) Obviously it's just one of the many magical features of Perl at work here. :) I don't think that there's any way for a user-defined sub to do this; or is there? -- Brandon McCaig <http://www.bamccaig.com/> <bamcc...@gmail.com> V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl. Castopulence Software <http://www.castopulence.org/> <bamcc...@castopulence.org> -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/