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

[ID 19991002.015] eval error leaking to screen

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

[Please enter your report here]
The following code:
     $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 ")
         (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...

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About