Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: CGI Not Returning Parameter that's thereby GrandFather (Saint) |
on Mar 21, 2009 at 22:40 UTC ( [id://752304]=note: print w/replies, xml ) | Need Help?? |
A more important reason for deciding between if ...; if ...; ... and if ... elsif ... is to indicate intent. A string of if statements indicates that any combination of them may be true. An if/elsif chain indicates that only one may be true. Efficiency differences in this case are most likely trivial, but the difference in information conveyed between the writer and reader of the code is highly significant! True laziness is hard work
In Section
Seekers of Perl Wisdom
|
|