[Israel.pm] Corrupted @INC variable

Yaakov Belch lists at yaakovnet.com
Sun Feb 15 04:50:04 PST 2004

>> 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 
perl -Mlib=path1,path2,path3 script.pl


More information about the Perl mailing list