in reply to Re: Can I see "requires"?
in thread Can I see "requires"?

A similar trick can be used to make sure code that uses use warnings works under pre-5.6 as well:
BEGIN { if ($] < 5.006) { $INC{'warnings.pm'} = __FILE__; no strict 'refs'; *{'warnings::unimport'} = sub {0}; } }
Of course, no warnings will be enabled when run under pre-5.6, but the code will not croak on a use warnings;

Replies are listed 'Best First'.
Re^3: Can I see "requires"?
by Anonymous Monk on Jun 28, 2012 at 01:18 UTC