Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: A matter of style: how to perform a simple action based on a simple condition?by Tux (Canon) |
on Sep 26, 2010 at 18:27 UTC ( [id://862106]=note: print w/replies, xml ) | Need Help?? |
The condition heavily weighs it's position quite often. Compare with:
In the first, the condition is now more important than how to meet it. (At least in my perception. In the latter two, I just switched and personally think it is clearer that way. Note that English is not my native tongue and that I am very well aware that not all people think alike. That is why I love perl5: it is very easy to write it as it best fits your mind while still not too hard to read when others wrote it the way they think is best. In the third example it is also important to realize the number of options on either side of the and/or/if/unless.
Of course this also goes the other way: there may be a number of reasons to open the window (other than to throw out ... from the 13th floor). Enjoy, Have FUN! H.Merijn
In Section
Seekers of Perl Wisdom
|
|