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

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

Thread Previous
From:
Steffen Mueller
Date:
May 22, 2008 17:22
Subject:
Re: [PATCH] lib.pm should not warn about loading .par files
Message ID:
483579D5.6060402@sneakemail.com
Hi Paul, hi all,

Paul Fenwick schrieb:
> 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.

So I guess this makes lib.pm a candidate for dual-living so we can "use 
lib 'foo.par'" on 5.8.8? I'd rather like to see this part of the PAR 
interface fixed.

Best regards,
Steffen

Thread Previous


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