Subject: | Mis-testing of <HANDLE> return-value |
Date: | Tue, 23 Jan 2018 23:59:20 -0500 |
To: | <bug-Convert-BinHex [...] rt.cpan.org> |
From: | Daniel Macks <dmacks [...] netspace.org> |
In Convert-BinHex-1.125, binhex.pl has several occurrences of:
while ($_ = <USAGE> and ...
that trigger a warning:
Value of <HANDLE> construct can be "0"; test with defined() at /sw/bin/binhex.pl line 85.
Value of <HANDLE> construct can be "0"; test with defined() at /sw/bin/binhex.pl line 85.
It's correct in debinhex.pl lines 89 and 90:
while (defined($_ = <USAGE>) and ...
dan
--
Daniel Macks
dmacks@netspace.org