develooper Front page | perl.perl5.porters | Postings from July 2003

Re: ?

Thread Previous | Thread Next
July 29, 2003 06:15
Re: ?
Message ID:
Elizabeth Mattijsen <> wrote:
:I was thinking of putting the following code (courtesy PodMaster on PerlMonks):
:     eval { require warnings } or do {
:         no strict 'refs';
:         *warnings::import = *warnings::unimport = sub{};
:         $INC{''}='';
:     }
:as a (note the capital 'W') module on CPAN.  This would 
:allow module authors to use Warnings; in modules that are supposed to 
:be able to run pre 5.6.

For the same reasons I expressed in the p5p meeting about a similar
module called 'warnings', I believe it has the potential to cause
more problems than it solves. I do not believe any one action can
DTRT here: you cannot backport a 5.6+ module by hiding the problems.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About