http://www.perlmonks.org?node_id=46554


in reply to warnings::register and Perl 5.005?

The warnings framework is new in 5.6.0, so anything that uses it is non-backportable.

And there is no way I can possibly think of to make it work for < 5.6. warnings (as most pragmas) is an internal framework -- if you look at warnings.pm and warnings/register.pm, you'll see that all they do is set some bits and variables. perl itself has to do the checking of those things. perl binary 5.005 and back don't do that checking.

Sorry :-(.

Update: Oops. Put a bare < in the second paragraph, which kinda messed up what it was supposed to say. All good now.

-dlc