NAME
File::LibMagic - Perlwrapper for libmagic
SYNOPSIS
use File::LibMagic qw/magic_buffer magic_file/;
print magic_buffer("Hello World\n"),"\n";
# returns "ASCII text"
print magic_file("/bin/ls"),"\n";
# returns "ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV)"
# on my system
ABSTRACT
The File::LibMagic
is a simple perl interface to libmagic from the file-4.x package from Christos Zoulas (ftp://ftp.astron.com/pub/file/)
DESCRIPTION
The File::LibMagic
is a simple perlinterface to libmagic from the file-4.x package from Christos Zoulas (ftp://ftp.astron.com/pub/file/).
EXPORT
None by default.
AUTHOR
Andreas Fitzner <fitzner@informatik.hu-berlin.de>
COPYRIGHT AND LICENSE
Copyright 2004 by Andreas Fitzner
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.