develooper Front page | perl.perl5.porters | Postings from May 2008

Re: [PATCH] lib.pm should not warn about loading .par files

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
May 25, 2008 14:15
Subject:
Re: [PATCH] lib.pm should not warn about loading .par files
Message ID:
b77c1dce0805251415ka1936bfre607170d24672c69@mail.gmail.com
2008/5/22 Paul Fenwick <pjf@perltraining.com.au>:
> G'day p5p,
>
> When PAR has been loaded, .par files in @INC will be searches for modules.
> one of the recommended interfaces for doing this is:
>
>        use PAR;
>        use lib 'example.par';
>
> This works just fine, but 'lib' emits a warning that it should only be used
> with directories, not files, and then adds example.par to @INC anyway.
>
> Anyone trying to add a file ending with .par into @INC probably knows what
> they're doing, so the trivial patch attached disables the warnings for .par
> files.

Thanks, applied as #33927 (and version bumped).

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About