Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Short and easy way to write if...elsif syntaxby LanX (Saint) |
on Aug 28, 2012 at 08:58 UTC ( [id://990181]=note: print w/replies, xml ) | Need Help?? |
no need to repeat $_ =~ and just add next to avoid fall thru.
more examples at Understanding the benefit of Given/When ...
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|