Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: On Commenting Out 'use strict;'

by salva (Canon)
on Aug 11, 2005 at 10:08 UTC ( [id://482890]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://482890]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-03-28 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found