Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Common module lib across Perl versions on same system

by bart (Canon)
on Jan 18, 2017 at 23:06 UTC ( #1179881=note: print w/replies, xml ) Need Help??


in reply to Re: Common module lib across Perl versions on same system
in thread Common module lib across Perl versions on same system

I think perls do have a built in support for both architecture-dependant and version-dependant directories (and both) in @INC. At least, I can see that support in lib. If I run the (private) sub lib::_get_dirs using
perl -le "require lib; print for lib::_get_dirs()"
I see:
/MSWin32-x64-multi-thread/auto /MSWin32-x64-multi-thread /5.24.0 /5.24.0/MSWin32-x64-multi-thread
These are subdirectories for each directory you add with use lib, that also get added to @INC.

So... version dependent library roots are defenitely possible in a common library directory tree.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1179881]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2021-10-24 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?