Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Basic - Perl5lib

by ikegami (Patriarch)
on Oct 27, 2010 at 23:00 UTC ( [id://867861]=note: print w/replies, xml ) Need Help??


in reply to Basic - Perl5lib

If you have multiple versions of Perl do they share the same PERL5LIB?

Environment variables are inherited from the parent process.

In other words, it doesn't have a default value and you have to set it manually?

It depends on what you mean by default value. You could set it in your login script, for example.

Replies are listed 'Best First'.
Re^2: Basic - Perl5lib
by Anonymous Monk on Oct 27, 2010 at 23:23 UTC
    I don't have a PERL5LIB environment variable?? When i run env command it isn't in the list and I get nothing from this Perl program
    #!/usr/bin/perl print "PERL5LIB: ", $ENV{PERL5LIB}, "\n"; print "done\n";

      So you don't. Is that a question?

      Perhaps you are missing the point of the variable: To specify additional locations to search for modules.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2025-06-16 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.