How do I get file metadata in Perl?

advertisements

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.)