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

Re^3: Add directry to @INC system wide

by taint (Chaplain)
on Apr 24, 2013 at 03:32 UTC ( #1030264=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Add directry to @INC system wide
in thread Add directry to @INC system wide

Just in case anyone else should follow this node;
It occurs to me that one could also create a module that "pre-pends" the desired
additional directory the system' include path, which could then become a system
wide include, by creating a wrapper for the Perl executable.
If the module name were "prepend-lib-path.pm" the "wrapper" that disguises itself as
Perl proper, would contain:

use prepend-lib-path;
While not an excuse to omit "lib" paths you might later decide you need;
it might help in a pinch.

HTH

#!/usr/bin/perl -Tw
use perl::always;
my $perl_version = "5.12.4";
print $perl_version;


Comment on Re^3: Add directry to @INC system wide
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-12-21 16:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls