WATANABE Hiroaki

NAME

MIME::Expander::Guess::MMagic - An implementation for guessing mime type

SYNOPSIS

    use MIME::Expander;
    use IO::All;
    
    my $filename = $ARGV[0];
    my $contents < io $filename;

    my $me = MIME::Expander->new({
                    guess_type => ['MMagic','FileName'],
                    });

    my $type = $me->guess_type_by_contents(
                \$contents, {filename => $filename});

DESCRIPTION

Guess the mime type from contents using File::MMagic.

SEE ALSO

MIME::Expander::Guess

File::MMagic