well, if you want to do this and really, really want to
avoid creating a proper module using exporter....
You can do something like this:
$name = \config::name;
in your calling script. Note that $name cannot be
declared by "my" in config.pl
Again, I want to stress I would never use something
like this. It is some much easier, simpler and safer
to convert config.pl into a module and then use exporter
to expose whatever you need.
| [reply] [d/l] |
Of course you can,
but maybe you'll get in trouble with global variables.
For example, if you decide not to use strict and warnings, you won't declare your variables...
You want this?
Of course I don't in a "huge" set of scripts
Cheers
Hopes | [reply] |