Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Not to the topic, but there should NEVER an else after a return/exit/croak/die. A return/die/exit/croak will end the current scope immediately, making the else obfuscating the code that follows, as the code after the else block will never be executed if the if branch is taken. If I were a code reviewer, that code would be vetoed. Enjoy, Have FUN! H.Merijn In reply to Re^3: What's the right way to write a method which returns one line at a time from a file?
by Tux
|
|