Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Style: buried variables or double referencing?

by merlyn (Sage)
on Aug 20, 2005 at 14:38 UTC ( [id://485386]=note: print w/replies, xml ) Need Help??


in reply to Style: buried variables or double referencing?

Obviously, this is an abstract example, but if you choose meaningful variable names (and not just "count"), I don't see anything wrong no matter what way you do it. If you have to introduce a synthetic variable (something that is meaningful only to work around a programming issue, and doesn't map into the problem space), then be sure to add comments and keep its scope to an absolute minimum.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on Re: Style: buried variables or double referencing?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://485386]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-19 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found