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

index e2289a9..78850c4 100644 (file)
@@ -77,7 +77,7 @@ sub handler
 
       #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__} );
       }