P is for Practical | |
PerlMonks |
Re: Control Flow - Multiple returns or nested conditionalsby halfcountplus (Hermit) |
on Oct 07, 2010 at 15:53 UTC ( [id://864023]=note: print w/replies, xml ) | Need Help?? |
I don't see anything wrong with either one, altho I tend toward the first one. (In fact, what I might do would be to define a populated return hash first, then modify it as necessary -- kind of like the 2nd example -- but within the if...return structure of the first example). If I had to defend this, I'd point out:
In Section
Seekers of Perl Wisdom
|
|