It's used often enough, but not the way you're doing it. Usually, the file would become a proper module in the @INC and is used instead of required. I'm using a similar method for configuration files in an application I'm creating at work.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
In reply to Re: Translation modules and the importation of global language variables
by hardburn
in thread Translation modules and the importation of global language variables
by traxlog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |