lexical instead of dynamic warnings
authorjeff <jeff>
Mon, 15 Feb 2010 16:34:42 +0000 (16:34 +0000)
committerjeff <jeff>
Mon, 15 Feb 2010 16:34:42 +0000 (16:34 +0000)
htetc/handler.pl

index af7ac7d..94377cf 100644 (file)
@@ -77,7 +77,7 @@ sub handler
 
       #we don't want the RT error handlers under FS
       {
 
       #we don't want the RT error handlers under FS
       {
-        local $^W = 0;
+        no warnings 'uninitialized';
         undef($SIG{__WARN__}) if defined($SIG{__WARN__});
         undef($SIG{__DIE__})  if defined($SIG{__DIE__} );
       }
         undef($SIG{__WARN__}) if defined($SIG{__WARN__});
         undef($SIG{__DIE__})  if defined($SIG{__DIE__} );
       }