I can't immediately reproduce this. What's in $file?
On 月曜日 7月 09 22:02:38 2007, cripto@ecn.org wrote:
Show quoted text> when setting $/, all results are returned as 'text/plain'.
> here's a contrived example:
>
> local $/ = "\0";
>
> use File::MMagic::XS;
> my $magic = File::MMagic::XS->new;
>
> for my $file (@ARGV) {
> my $mime = $magic->get_mime($file);
> print "$file: $mime\n";
> }
>