I'm looking for a module or some way to obtain the information about the content of a file.
The same sort of thing that the Linux "file" command does, but in Perl language.
Have a look at the File::Magic module on the CPAN. (Editor's note: This module was removed by its author.)
Take a look at File::Magic
http://search.cpan.org/~rehsack/File-Magic-0.01/
File::Magic is no longer supported. Use File::MMagic instead (also metacpan.org is now preferred over search.cpan.org)
https://metacpan.org/pod/File::MMagic
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With