[Israel.pm] Corrupted @INC variable

Ms Vera Sheinman vera_46 at yahoo.com
Sun Feb 15 05:14:08 PST 2004


use lib qw(path1,...) won't work cause @INC is
corrupted, thus "lib.pm" won't be found, the same goes
for the command line.
--- Yaakov Belch <lists at yaakovnet.com> wrote:
> >
> >
> >> Does anyone know how to change @INC
> >> value permanently, outside the script, or in some
> >> other way? 
> >
> see `perldoc lib`: You can write in your script
>   use lib qw(path1 path2 path2);
> instead of
>   BEGIN{unshift @INC, qw(path1 path2 path3)};
> 
> You can achieve the same effect on the command line
> that calls your perl 
> script:
> perl -Mlib=path1,path2,path3 script.pl
> 
> Yaakov
> 
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://www.perl.org.il/mailman/listinfo/perl
> 
> YAPC::Israel::2004
> http://www.perl.org.il/YAPC/2004/


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html



More information about the Perl mailing list