On Fri, Dec 20, 2013 at 1:46 AM, Janek Schleicher <[email protected]
> wrote:
> * if you lookup perldoc use,
> you'll see the use Module is equivalent to
> BEGIN { require Module }
> and the BEGIN blocks are run first of all.
>
And so, as it's really a code block, you can, if you want, define vars there
BEGIN {
our $server_path = "/opt/app/web/support";
chdir $server;
}
use lib "$server_path";
and have them available elsewhere. Not sure it's a good idea though ;->
--
a
Andy Bach,
[email protected]
608 658-1890 cell
608 261-5738 wk