You would almost certainly need to customize the output to your needs, but there seems to be a CPAN module that can map file mimeinfo to typical (windows?) file extensions:
http://search.cpan.org/~pardus/File-...le/MimeInfo.pm
Quote:
extensions($mimetype)
In list context, returns the list of filename extensions that map to the given mimetype. In scalar context, returns the first extension that is found in the database for this mimetype.
|