26 Oct 2020 20:08:52 UTC
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (18)
- Testers (1107 / 0 / 0)
- KwaliteeBus factor: 1
- 67.75% Coverage
- License: perl_5
- Perl: v5.6.1
- Activity24 month
- Download (35.29KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:5 non-PAUSE usersMICHIELB Michiel Beijen
Changes for version 0.3 - 2003-08-24
- Moved file test operator stuff to a subroutine called inodetype()
- Actually implemented the --file-compat switch
- Added the -L and -i commandline switches for file(1) compatibility
- Fixed a few bugs with relative file names
- Changed the script 'mimeinfo' back to 'mimetype' because rox has a '--mime-type' switch doing the same thing as this script.
- Added the describe() method for getting human readable descriptions
- Implemented the commandline switches --desc and --output-format
- Changed the script 'mimetype' to 'mimeinfo'
- added some commandline options to make this script a little file(1) compat
- added some file test operators for determining types from the inode/* class.
- use utf8 binmode for filehandles
Changes for version 0.30 - 2020-10-26
- Added function File::MimeInfo::has_mimeinfo_database() to test if mimeinfo database is found
- mimetype and mimeopen now exit with an error code if no mimeinfo database is found
- Added explicit dependency on Encode::Locale
- Properly decode parameters for `mimeopen` and `mimetype`. Patch provided by Nikos Skalkotos
- Fix for undefined defaults (fixes #36). Reported & fix provided by Martin Vassor
- Improved installation instructions, specifically on macOS, by Oleg Kostyuk & Michiel Beijen
Documentationvarious code snippetsOpen files by mimetypeDetermine file type
ModulesDetermine file type from the file nameFind programs to open a file by mimetypeDetermine file type with magicOpen files by mimetype "Rox style"
Module Install Instructions
To install File::MimeInfo, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install File::MimeInfo
For more information on module installation, please visit the detailed CPAN module installation guide.