Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: sf [...] flacks.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.21
Fixed in: (no value)

Attachments


Subject: warnings if contents contain '?'
Download (untitled) / with headers
text/plain 215b
I'm getting lots of "Use of uninitialzed value" warnings if the contents of the file contains a '?'. See attached file as a demonstration. I'm happy to prodvide more information. Tested on 1.19 and 1.21 --simonflk
Download MMagic-uninit.t
text/x-perl 147b
#!/usr/local/bin/perl -wl use strict; use File::MMagic 1.21; my $magic = new File::MMagic(); select STDERR; print $magic->checktype_contents('?');
RT-Send-CC: knok [...] daionet.gr.jp
Download (untitled) / with headers
text/plain 273b
[guest - Fri Feb 6 08:28:39 2004]: Show quoted text
> I'm getting lots of "Use of uninitialzed value" warnings if the > contents of the file contains a '?'.
It it too small contents. File::MMagic assumes the input is in a degree size (about 1kB or more), because it's hard to guess.


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.