Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by Kenosis (Priest)
on Aug 28, 2012 at 02:08 UTC ( #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
Node Status?
node history
Node Type: note [id://990112]
help
Chatterbox?
[shmem]: ww: black box, red flags...
[marto]: the first against the wall when the revolution comes is always the people who say 'the first against the wall when the revolution comes...'
marto ducks
[holli]: must watch
[holli]: good thing i added a question mark then
[shmem]: marto: nice paraphrase of 1st club rule
[holli]: plausible deniability ;)
[marto]: the first rule of chess club, touch piece
[ww]: but "don't touch 3rd rail?"\
LanX hails himself \o

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2017-11-21 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (301 votes). Check out past polls.

    Notices?