Subject: | Warning squashing only works for non-fatal warnings |
Date: | Tue, 17 Sep 2013 00:09:08 +0000 |
To: | bugs-signatures [...] rt.cpan.org |
From: | Matt S Trout <mst [...] shadowcat.co.uk> |
use strict;
use warnings;
use signatures;
works fine. However
use strict;
use warnings FATAL => 'all';
use signatures;
blows up spectacularly - you instead need
use strict;
use warnings FATAL => 'all';
use warnings NONFATAL => 'illegalproto';
use signatures;
for 5.12+, or
use strict;
use warnings FATAL => 'all';
no warnings::illegalproto;
use signatures;
for portability to older perls.
--
Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and a clue
http://shadowcat.co.uk/blog/matt-s-trout/ http://twitter.com/shadowcat_mst/
Email me now on mst (at) shadowcat.co.uk and let's chat about how our CPAN
commercial support, training and consultancy packages could help your team.