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

Warnings.pm ?

Thread Next
From:
Elizabeth Mattijsen
Date:
July 29, 2003 02:47
Subject:
Warnings.pm ?
Message ID:
p05111b02bb4bf24b41e8@[80.127.186.62]
I was thinking of putting the following code (courtesy PodMaster on PerlMonks):

BEGIN {
     eval { require warnings } or do {
         no strict 'refs';
         *warnings::import = *warnings::unimport = sub{};
         $INC{'warnings.pm'}='';
     }
} #BEGIN

as a Warnings.pm (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.

Would that interfere with any other plans we have?  Or would it 
simplify matters?


Liz

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