Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 scrutinizing the Monastery: (13)
As of 2014-09-30 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (370 votes), past polls