NAME
Document::Info v0.01 - determine file type for Office documents
SYNOPSIS
use Document::Info;
if ( $Info=Document::Info->new($fileName) ) {;
# $Info constructed, that means something has been determined.
# Fetch the currently supported properties.
$type = $Info -> getType ( );
$rev = $Info -> getRevision ( );
$os = $Info -> getOS ( );
if ( $type eq $Info->cMSExcel() ) {
# Do something. Note: when checking a type or an operating System
# always use the string constants like cMSExcel().
}
if ( !$revision ) {
# revision not determined.
}
} else {
# Document type could not be determined.
}
DESCRIPTION
The module tries to figure out the document type of Office files. It utilizes OLE::Storage to determine the file type of Windows-documents. The module is in a very early state.
AUTHOR
Martin Schwartz, schwartz@cs.tu-berlin.de
SEE ALSO
file(1), lfile(1), OLE::Storage.