There's more than one way to do things | |
PerlMonks |
Re^3: Win32 @INC behaviorby osunderdog (Deacon) |
on Nov 16, 2005 at 14:46 UTC ( [id://509056]=note: print w/replies, xml ) | Need Help?? |
@INC is the result of all perllib additions that have been made by perl upon startup. It is not fixed at all. Although there is a portion of it that is fixed at compile time. The @INC is a combination of compile time settings, PERLLIB environment variable, perl command line -I parameters and use lib statements. For example on linux, if you do: PERLLIB=envbar perl -I cmdfoo -V -e "use lib ('usebaz');"You will see the resulting @INC :
There appears to be an order of precidence here too. use lib is first, -I option is second, PERLLIB is third and compiled settings is fourth. Update: added use lib to the example. Hazah! I'm Employed! But this place sucks
In Section
Seekers of Perl Wisdom
|
|