Skip Menu |

This queue is for tickets about the Win32-API CPAN distribution.

Report information
The Basics
Id: 30674
Status: resolved
Priority: 0/
Queue: Win32-API

People
Owner: Nobody in particular
Requestors: cosimo [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.46
Fixed in: 0.41



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
RT-Send-CC: dmitry [...] karasik.eu.org
Solved in Win32::API 0.47, soon on CPAN.