Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: Short and easy way to write if...elsif syntax

by Kenosis (Priest)
on Aug 28, 2012 at 02:08 UTC ( [id://990112]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Short and easy way to write if...elsif syntax
in thread Short and easy way to write if...elsif syntax

Perhaps I'm misunderstanding what you're saying, but given is a topicalizer, aliasing a lexically scoped $_ to a scalar's value which when operates on. The if/elsif construct doesn't create topics. Given this difference in functionality, how is given/when syntactic sugar for if/elsif?

  • Comment on Re^5: Short and easy way to write if...elsif syntax

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found