Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
As others already stated, your code is confusing and yes, my rule would forbid that. Your code has no more value than any of these (all clearer):
For short expressions, my personal preference is the middle one. The first is the best choice if it is likely that the blocks can have statements before the return. I personally do not like statement modifiers, so I would not choose the third option, but it is still by far better than your example. Opinions differ though. TIMTOWTDI. But you still have shown no reason why my ruling would be rediculous. You only showed an example that strenghtens my opinion on it. Enjoy, Have FUN! H.Merijn In reply to Re^9: What's the right way to write a method which returns one line at a time from a file?
by Tux
|
|