Subject: | Unclosed filehandle DATA |
Hi,
I've spotted a slight bug in Win32::API where line information gets
displayed differently. For example,
perl -MWin32::API -e die
reports
Died at -e line 1, <DATA> line 164.
instead of the usual
Died at -e line 1.
This can be fixed by adding
close DATA;
in Win32/API/Types.pm line 75, and as suggested by perldoc perldata
( .." The
filehandle is left open pointing to the contents after __DATA__. It is
the
program's responsibility to "close DATA" when it is done reading from
it.").
(ps. apologoies for being pedantic :)
-- Sincerely, Dmitry Karasik