Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Practical example of "Is Perl code maintainable"

by eyepopslikeamosquito (Chancellor)
on Aug 13, 2007 at 08:24 UTC ( #632157=note: print w/replies, xml ) Need Help??


in reply to Practical example of "Is Perl code maintainable"

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://632157]
help
Chatterbox?
[LanX]: according to wp: Londoners voted in a referendum in 1998 to create new governance structures for Greater London.
[LanX]: so it was the will of the people to take back control
[LanX]: ;)
[marto]: and you still can't get a decent cup of tea in that town

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2017-12-15 19:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (442 votes). Check out past polls.

    Notices?