Skip Menu |

This queue is for tickets about the signatures CPAN distribution.

Report information
The Basics
Id: 88718
Status: open
Priority: 0/
Queue: signatures

People
Owner: Nobody in particular
Requestors: mst [...] shadowcat.co.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.
On 2013-09-16 17:09:21, mst@shadowcat.co.uk wrote: Show quoted text
> 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. >
A suggestion for how to fix this, or even better a patch, would be most welcome.