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

Re: Restricting @INC for specific application need

by ig (Vicar)
on Mar 27, 2009 at 06:28 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://753582]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-18 20:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found