Perl: the Markov chain saw | |
PerlMonks |
Re^5: Short and easy way to write if...elsif syntaxby Kenosis (Priest) |
on Aug 28, 2012 at 02:08 UTC ( [id://990112]=note: print w/replies, xml ) | Need Help?? |
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?
In Section
Seekers of Perl Wisdom
|
|