Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: modify @INC

by Aristotle (Chancellor)
on Jan 17, 2003 at 01:42 UTC ( #227585=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $libpath;
    BEGIN { $libpath = "/foo/bar"; }
    use lib $libpath;
    
  2. or download this
    {
        local @INC = ("/foo/bar", @INC);
        require Foo;
        Foo->import;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2022-09-27 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (118 votes). Check out past polls.

    Notices?