SPUG: add to default @INC
Brian Hatch
spug at ifokr.org
Fri Jul 18 17:00:52 CDT 2003
> 'use lib' is the way to go.
>
> #!/usr/bin/perl
>
> use lib '/path/to/my/perl/directory';
But he didn't want to modify his source files.
> Or, you can set the PERL5LIB environment variable if your're on a
> Unix-ish machine (maybe even on Windows, I've never tried).
Now *there*'s the answer! A search throughout 'man perlrun' for
@INC, and that isn't in the PERL5?LIB sections. Grr, I knew
there had to be something better than my hack.
--
Brian Hatch Hard work was never
Systems and actually *convicted*
Security Engineer of killing anyone.
http://www.ifokr.org/bri/
Every message PGP signed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/spug-list/attachments/20030718/f9c3f224/attachment.bin
More information about the spug-list
mailing list