Skip Menu |

This queue is for tickets about the warnings-compat CPAN distribution.

Report information
The Basics
Id: 39170
Status: resolved
Priority: 0/
Queue: warnings-compat

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.06
Fixed in: 0.07



Subject: That's not the trick
The docs say: ------- The trick is that the warnings pragma is located in the core location while the warnings.pm emulation module is installed in the site_perl location, therefore use warnings::compat should DTRT on every Perl version. ------- But that's not the trick (and that trick isn't safe because not everyone orders @INC that way, or what if you used a PREFIX and PERL5LIB which comes first?). The trick is warnings::compat won't install warnings.pm on 5.6 and up. Looks like some left over docs from when that was the trick.
Subject: Re: [rt.cpan.org #39170] That's not the trick
Date: Thu, 11 Sep 2008 00:35:47 +0200
To: bug-warnings-compat [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Michael G Schwern wrote via RT: Show quoted text
> The docs say: > ------- > The trick is that the warnings pragma is located in the core location > while the warnings.pm emulation module is installed in the site_perl > location, therefore use warnings::compat should DTRT on every Perl > version. > ------- > > But that's not the trick (and that trick isn't safe because not > everyone > orders @INC that way, or what if you used a PREFIX and PERL5LIB which > comes first?). The trick is warnings::compat won't install > warnings.pm > on 5.6 and up. > > Looks like some left over docs from when that was the trick.
You're perfectly right. Thanks for noting this. -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.