Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by Unforgiven (Hermit)
on Nov 19, 2009 at 14:37 UTC ( #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
Node Status?
node history
Node Type: note [id://808159]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2020-10-26 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (251 votes). Check out past polls.

    Notices?