|
|
| "be consistent" | |
| PerlMonks |
Re: Practical example of "Is Perl code maintainable"by eyepopslikeamosquito (Canon) |
| on Aug 13, 2007 at 08:24 UTC ( #632157=note: print w/ replies, xml ) | Need Help?? |
|
Yes, I like your version more than mine, especially the nice comment. This example does highlight what was perhaps a design mistake in Perl 5, namely the magical performance hack via the "_" special filehandle ... which I'm sure will disappear in Perl 6. Though tricky and magical, one cannot ignore this special filehandle in practical Perl 5 programming for performance reasons, so the best practical step is to use and comment it, as you did. Update: Oops, responded to the wrong node. I meant to respond to hossman's node above.
In Section
Meditations
|
|
||||||||||||||||||||