Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 perusing the Monastery: (10)
As of 2015-07-29 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls