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