in reply to Re: Choosing between multiple closures
in thread Choosing between multiple closures

Erm... unless you're talking about extraneous things like the shebang and use strict; — which should never be included here for sake of brevity — the provided code is runnable.

Replies are listed 'Best First'.
Re^3: Choosing between multiple closures
by Anonymous Monk on Jun 12, 2014 at 07:59 UTC

    which should never be included here for sake of brevity

    If you look at How do I post a question effectively? you'll see strict and warnings ... and shebang is just one more line, so keep them for the sake of brevity ... and to avoid followups like "did you forget strict/warnings aka the free help in your real code?"

Re^3: Choosing between multiple closures
by Anonymous Monk on Jun 12, 2014 at 07:54 UTC

    No dude , talking about feature

    syntax error at - line 4, near ") {" syntax error at - line 7, near "}" Can't use global @_ in "my" at - line 10, near "= @_" syntax error at - line 15, near "}" Execution of - aborted due to compilation errors.

    But I already eyeballed a solution :)