Skip Menu |
 

This queue is for tickets about the File-MMagic CPAN distribution.

Report information
The Basics
Id: 5821
Status: new
Priority: 0/
Queue: File-MMagic

People
Owner: Nobody in particular
Requestors: mark [...] summersault.com
Cc:
AdminCc:

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



Subject: Some kinds of filehandles don't work
Download (untitled) / with headers
text/plain 535b
I believe there is a bug relating to how file handles are used. The code expects that file handles support having methods called on them, like "$fh->getc". Not all file handles support that. In particular, I'm using a file handle provided by the CGI.pm upload function, which is blessed into a 'Fh' class. One solution would be to call functions on the file handles the old way, rather than as method calls. Alternately, perhaps there is a way to convert any file handle into a 'FileHandle' compatible file handle. Thanks! Mark
Download (untitled) / with headers
text/plain 605b
[guest - Sat Mar 27 10:50:28 2004]: Show quoted text
> I believe there is a bug relating to how file handles are used. The > code expects that file handles support having methods called on them, > like "$fh->getc". > > Not all file handles support that. In particular, I'm using a file > handle provided by the CGI.pm upload function, which is blessed into
a Show quoted text
> 'Fh' class. > > One solution would be to call functions on the file handles the old > way, rather than as method calls. Alternately, perhaps there is a way > to convert any file handle into a 'FileHandle' compatible file
handle. Show quoted text
> > Thanks! > > Mark


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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