Problems? Is your data what you think it is? | |
PerlMonks |
Re: File::MMagic Woesby koolade (Pilgrim) |
on Aug 07, 2001 at 20:44 UTC ( [id://102846]=note: print w/replies, xml ) | Need Help?? |
I had the same problems when trying to run the script under mod_perl. The problem ends up being the same thing that Russ pointed out. The easiest solution (other than fixing File::MMagic) is to use an external magic file when creating a new File::MMagic object. If you do this, File::MMagic won't try the buggy optimization and will read the file each time a new object is called.
In Section
Seekers of Perl Wisdom
|
|