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;