Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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;

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2015-11-25 16:42 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (683 votes), past polls