Skip Menu |

This queue is for tickets about the MPEG-ID3v2Tag CPAN distribution.

Report information
The Basics
Id: 52353
Status: new
Priority: 0/
Queue: MPEG-ID3v2Tag

People
Owner: Nobody in particular
Requestors: mivkovic [...] cpan.org
Cc: mi.cpan [...] 2009.alma.ch
AdminCc:

Bug Information
Severity: Important
Broken in: 0.39
Fixed in: (no value)



CC: mi.cpan [...] 2009.alma.ch
Subject: parse fails if given IO::File object as in example
Following the example in the Synopsis fails with the error "'ID3' not found in header" Apparently, this is because of if ( ( ref $fh ) eq 'GLOB' ) in the parse routine at line 288 (and also later at line 328). When using an IO::File object as in the Synopsis example, ref($fh) is "IO::File", not "GLOB". A simple fix seems to be to replace these 2 lines with if ( ( ref $fh ) eq 'GLOB' or ( ref $fh ) eq 'IO::File' ) {