Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Testing $^W

by Perl Mouse (Chaplain)
on Nov 04, 2005 at 09:57 UTC ( #505664=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      is( $^W, 1, 'warnings are on' );
      third_party_code();
      is( $^W, 1, 'warnings are still on' );
    
  2. or download this
       {   local $^W;
           third_party_code();
           ok (!$^W, 'warnings still off');
       }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://505664]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2018-02-18 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (257 votes). Check out past polls.

    Notices?