Re: suppressing selected warning messages

2006-05-24 Thread Xavier Noria
On May 24, 2006, at 18:48, Gavin Bowlby wrote: I can suppress all warning checks by doing a: no warnings; if ($a == 7) { use warnings; but I would like all other "normal" Perl warnings to be used for the statement: if ($a == 7) other than the check for the LHS of the equality check being a

suppressing selected warning messages

2006-05-24 Thread Gavin Bowlby
All: Is there a way to suppress a specific warning message produced by Perl? Example program: use strict; use warnings; my $a = "abc"; if ($a == 7) { print "a = 7\n"; } else { print "a != 7\n"; } = Output