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)



Subject: warnings if contents contain '?'
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
#!/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
[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.