Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Getting data ready for HTML::Template

by Unforgiven (Hermit)
on Nov 19, 2009 at 14:37 UTC ( [id://808159]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Getting data ready for HTML::Template
in thread Getting data ready for HTML::Template

Gah, I knew I was forgetting to mention something else. Thanks for catching that.

It's an example of keeping your variables close to where they're used. For most cases, it's better to declare a variable, use it, then stop using it. If nothing else, when reading your code, it makes it easier to keep all those variables you're actively using in your head, since as soon as you're done with it, you can forget about it.

  • Comment on Re^4: Getting data ready for HTML::Template

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-16 10:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found