On Tue, Apr 13, 2004 at 10:54:55PM +0200, Louis Pouzin wrote:

> I'm puzzled. Why is gore interfering at all, and what's wrong with the
> squeaking statements ?

What's wrong with the statements is exactly what the warnings are telling
you!

Value of <HANDLE> construct can be "0"; test with defined() at qlib.pm line 25.

If the last line of a file is the single character 0 (not followed by a
newline), then a boolean test will incorrectly suggest that no data was
read from HANDLE.  Thus, you should test with defined() instead.

You get these warnings even when that block of code is not executed because
these are syntax warnings that are generated at compile time.

You probably want something like:

defined($var = <HANDLE>) or last;

Ronald

Reply via email to