Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
In larger scripts, I simultaneously handle that and the clarity issue by writing code like this I got kinda turned off of IO->Handle when I read this comment in the pod
When I read the authors name, it strengthened the feeling. Update: To clarify, the author to which I referred was the author of the comment I quoted above--from the pod of perlipc not IO->Handle--Tom Christiansen, who comments are to be valued. I have absolutely nothing against Graham Barr (the author of IO::Handle), nor even much against that module. My only reservation was of the practice of using IO->Handle only for the purposes of turning on autoflush. If $|=1; $|=0; is deemed to cryptic, you could use something like:
Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller If I understand your problem, I can solve it! Of course, the same can be said for you. In reply to Re: Re: Re: Perl Idioms Explained - $|++
by BrowserUk
|
|