The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.