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

Re: Restricting @INC for specific application need

by ig (Vicar)
on Mar 27, 2009 at 06:28 UTC ( #753582=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    #
    ...
        local @INC = ( "/opt/app/lib" );
        eval "use Application::Module";
    }
    
  2. or download this
    #!/usr/bin/perl
    #
    ...
    use File::Find;
    substr($INC{'File/Find.pm'},0,length(APPLIB)) eq APPLIB
        or die "File::Find incorrectly loaded from " . $INC{'File/Find.pm'
    +};
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (13)
As of 2014-08-22 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (163 votes), past polls