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

Re^2: Add directry to @INC system wide

by Anonymous Monk
on Mar 07, 2013 at 21:56 UTC ( [id://1022306]=note: print w/replies, xml ) Need Help??


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

Maybe, you can edit the system wide perl customization file?

That can be disabled -- meaning not always passed through -- the only way to permanently add paths which cannot be disabled is to compile-them-in

OTOH, simply installing modules in @INC to begin-with avoids the problem of needing to add paths to @INC

Replies are listed 'Best First'.
Re^3: Add directry to @INC system wide
by taint (Chaplain) on Apr 24, 2013 at 03:32 UTC
    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;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-03-29 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found