BEGIN{unshift(@INC,'./some/local/directory/');}
TMTOWTDI
Gus
Sami Näätänen
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
om> cc: (bcc: Gustav
Schaffter/CDS/CG/CAPITAL)
Subject: Re: [gentoo-user] Adding a
dir to perl's library path
22-08-2003 18:09
Please respond to
gentoo-user
On Monday 18 August 2003 03:07, Mark Fisher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sunday 17 August 2003 9:22 pm, Pat Kerwan wrote:
> > > Is there a way of easily adding the dir to the @INC path that
> > > doesnt invlolve re-compiling perl?
> >
> > You could set the PERLLIB (or PERL5LIB) environment variable to
> > include the directory.
> >
> > See 'man perlrun' for details.
>
> Thanks muchly, worked a treat :)
You also could add this as the first line in your perl program
use lib "/full/path/to/your/perl/lib/dir/";
--
[EMAIL PROTECTED] mailing list
--
[EMAIL PROTECTED] mailing list