http://qs1969.pair.com?node_id=482890


in reply to Re: On Commenting Out 'use strict;'
in thread On Commenting Out 'use strict;'

I heard a rumor that Perl6 is going to give us the ability to shut off individual warnings, without losing the ability to see other warnings.

You can actually do that on Perl 5:

use warnings; ... # and then deep on your code { ... no warnings 'uninitialized'; # or whatever print "$uninitialized_var\n"; ... }

Replies are listed 'Best First'.
Re^3: On Commenting Out 'use strict;'
by thor (Priest) on Aug 11, 2005 at 11:43 UTC
    Just to shine a little more light on it: perllexwarn. Search for 'Category Heirarchy' if you want to see all of the categories.

    thor

    Feel the white light, the light within
    Be your own disciple, fan the sparks of will
    For all of us waiting, your kingdom will come

      And then, if you want to turn off a warning but don't know to which category it belongs, take a look at perldiag.