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?
|
---|
In Section
Seekers of Perl Wisdom