in reply to Question: module to grab file information??
CPAN has several modules that can guess a files type, like File::MimeInfo and File::MimeInfo::Magic. However most of those modules can't give you much more information that the filetype. Therefor I prefer using File::Extractor, which can collect detailed metadata for lots of filetypes like the resolution for image files, artist, title, etc from audio files and much more. The only downside is that it requires an external c library: libextractor.
Also note that I might be quite a bit biased as I'm the author of File::Extractor.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Question: module to grab file information??
by lihao (Monk) on Apr 30, 2008 at 16:40 UTC | |
by rafl (Friar) on Apr 30, 2008 at 16:46 UTC |