SPUG: add a path to @INC
andrew at sweger.net
Fri Jan 7 09:13:13 PST 2005
On Fri, 7 Jan 2005, Sachin Chaturvedi wrote:
> i want to modify my @INC and want to add the path /pkg/perl5plus/lib
> in that . can i get any help in this issue.
In a Perl script or module:
use lib '/pkg/perl5plus/lib';
For a one-liner:
perl -I/pkg/perl5plus/lib -e '...'
For more information:
Andrew B. Sweger -- The great thing about multitasking is that several
things can go wrong at once.
More information about the spug-list