in reply to Re^2: Customizing diagnostics?
in thread Customizing diagnostics?

Well, here's something a bit odd. Here's what I was trying:
$ perl -wce'no warnings "parenthesis"; print ("\n")' -e syntax OK
Which led me to think that my above reply was correct. If I change  no warnings "parenthesis"; to, say,  use strict; or chomp; or print "foo";, then the warning comes back. But if I change it to no warnings "y2k"; or even  use warnings "y2k" (or any other category from perllexwarn), it stays gone. I'm on 5.8.3.

Replies are listed 'Best First'.
Re^4: Customizing diagnostics?
by ysth (Canon) on Jul 21, 2005 at 01:48 UTC
    This is a longstanding bug; using no warnings "foo" after -w (as opposed to use warnings;) disables all warnings; coincidentally, this was fixed a week ago by Rick Delaney and should be better in 5.8.8.