Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: PERL5LIB different than 'use lib'

by Anonymous Monk
on May 07, 2009 at 03:23 UTC ( [id://762479]=note: print w/replies, xml ) Need Help??


in reply to PERL5LIB different than 'use lib'

which, unfortunately, and contrary to the explanation in perlrun, isn't the same

Yes it is, it is exactly the same.

D:\>perl -Mlib=TEST -le"print for @INC TEST D:/Perl/site/lib D:/Perl/lib . D:\>set PERL5LIB=TEST D:\>perl -le"print for @INC TEST D:/Perl/site/lib D:/Perl/lib .
http://perl5.git.perl.org/perl.git/blob?f=lib/lib_pm.PL

PERL5LIB mystery, PERL5LIB and Windows UNC Path, PERL5LIB-How does it work, Paths for PERL5LIB, the -I switch and 'use lib'.

Replies are listed 'Best First'.
Re^2: PERL5LIB different than 'use lib'
by tilly (Archbishop) on May 07, 2009 at 23:34 UTC
    See my response above to almut. While your Perl doesn't show it, mine shows a hardcoded difference in the behavior of PERL5LIB and use lib. And therefore there is every reason to believe saintmike's description.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-24 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found