Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Choosing between multiple closures

by oakb (Scribe)
on Jun 12, 2014 at 07:47 UTC ( [id://1089661]=note: print w/replies, xml ) Need Help??


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 :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1089661]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-28 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found