NAME

File::MagicPP

SYNOPSIS

This module provides file magic through pure perl and does not rely on libraries external to Perl.

use File::MagicPP qw/file/;
my $type = file($0);
# $type now holds "script"

VARIABLES

$VERSION

Describes the library version

%magicLiteral

Provides a hash of magic bits to file type, e.g., BZh => "bz"

FUNCTIONS

file()

Give it a file path and it will tell you the file type.