[Catalyst] Catalyst::Plugin::Authentication under ActivePerl 5.8.7.813

Will Hawes info at whawes.co.uk
Thu Dec 22 22:29:45 CET 2005


Matt S Trout wrote:
> On Thu, Dec 22, 2005 at 06:12:03PM +0000, Will Hawes wrote:
>> It isn't entirely obvious how that can be changed - the docs explain how 
>> to add to both ends of @INC, but not how to change the order of the 
>> default paths without hacking @INC in your script.
> 
>>From 'man perlrun'
> 
>        PERL5LIB    A list of directories in which to look for
>                    Perl library files before looking in the stan­
>                    dard library and the current directory.  Any
>                    architecture-specific directories under the
>                    specified locations are automatically included
>                    if they exist.  If PERL5LIB is not defined,
>                    PERLLIB is used.  Directories are separated
>                    (like in PATH) by a colon on unixish platforms
>                    and by a semicolon on Windows (the proper path
>                    separator being given by the command "perl
>                    -V:path_sep").
> 
>                    When running taint checks (either because the
>                    program was running setuid or setgid, or the
>                    -T switch was used), neither variable is used.
>                    The program should instead say:
> 
>                        use lib "/my/directory";
> 

I've played with PERL5LIB already, it being one of the ways to add to 
the start of @INC covered in the release notes distributed with the source.

I can effectively swap the order of the default paths by setting 
PERL5LIB to ".;C:\Perl\site\lib", giving me:

.
C:\Perl\site\lib
C:\Perl\lib
C:\Perl\site\lib
.

I'm guessing the repetition of paths doesn't matter.

I'm really after a way to set the default @INC at build time. It seems 
that either APPLLIB_EXP or USE_SITECUSTOMIZE  might allow this but I 
haven't checked yet.



More information about the Catalyst mailing list