Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by bart (Canon)
on Jan 18, 2017 at 23:06 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-19 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found