|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: Control Flow - Multiple returns or nested conditionalsby GotToBTru (Monk) |
| on Oct 07, 2010 at 21:41 UTC ( #864099=note: print w/ replies, xml ) | Need Help?? |
|
My preference is the nested conditionals. It encourages and facilitates reviewing the entire logical flow if/when you add other conditions. With multiple return points, if the code was modified extensively over time, I would worry about ending up with orphaned parts of the code.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||