go ahead... be a heretic | |
PerlMonks |
Re: perldelta unclear on 'given's fateby morelenmir (Beadle) |
on Jan 04, 2014 at 18:29 UTC ( [id://1069307]=note: print w/replies, xml ) | Need Help?? |
I shall give all those suggestions a look over chaps! From what has been said here it looks like the desire for a perl 'switch' has been around for quite a long time. LanX - in regards your snippet; if I understand aright the 'if's are comparing implicitly against $_ without having to explicitly provide a second argument? I am still very woolly about those perl shortcuts! Either way, the 'next's work like 'break' would in C?
In Section
Seekers of Perl Wisdom
|
|