Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 musing on the Monastery: (3)
As of 2014-10-26 07:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (152 votes), past polls