develooper Front page | perl.perl5.porters | Postings from December 2000

[ID 19991002.015] eval error leaking to screen

Thread Next
From:
Stephen P. Potter
Date:
December 21, 2000 11:39
Subject:
[ID 19991002.015] eval error leaking to screen
Message ID:
200012212039.PAA13876@spotter.yi.org
This still appears to be true as of @8221.

[Please enter your report here]
  
The following code:
  
 eval('
     a()
     $OOT = "/compile/epeschko1";
     $GLOBAL = " /compile/integrate/global";
     '
 );
  
'leaks' its error message to the screen as a warning, even when '-w' is
turned off, as in: 
  
 Scalar found where operator expected at (eval 1) line 3, near ")
         $OOT"
         (Missing operator before $OOT?)
  
When you put:
  
 $SIG{__WARN__} = sub {};
  
it stops doing so - but why does it print at all?  Not sure this is a 'bug'
per say, but it sure smells, tastes, and acts like one...
  
Ed

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About