Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Testing $^W

by Perl Mouse (Chaplain)
on Nov 04, 2005 at 09:57 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://505664]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2024-04-18 20:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found