Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.

X Report information
Id: 30674
Status: resolved
Left: 0 min
Priority: 0/0
Queue: Win32-API

Owner: Nobody
Requestors: COSIMO <cosimo [...] cpan.org>
Cc:
AdminCc:

Severity: Normal
Broken in: 0.46
Fixed in: 0.41



X History Display mode: Brief headersFull headers
#   Mon Nov 12 12:22:14 2007 COSIMO - Ticket created  
Subject: Unclosed filehandle DATA
[text/plain 594b]
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

#   Mon Nov 12 13:51:13 2007 COSIMO - Correspondence added  
RT-Send-CC: dmitry[...]karasik.eu.org
[text/plain 40b]
Solved in Win32::API 0.47, soon on CPAN.
#   Mon Nov 12 13:51:17 2007 COSIMO - Status changed from 'new' to 'resolved'