Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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 "" 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.


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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030264]
and the daffodils sway...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2018-03-18 18:22 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (230 votes). Check out past polls.