Welcome to the Monastery | |
PerlMonks |
Re: Coding styles using if/elseby rhesa (Vicar) |
on Apr 05, 2007 at 23:11 UTC ( [id://608573]=note: print w/replies, xml ) | Need Help?? |
I use that pattern all the time. When I'm validating input, I want to bail out at the first sign of trouble. Once all input passes scrutiny, I continue with business. No need for an else clause in that case.
In Section
Seekers of Perl Wisdom
|
|