View Single Post
  #7   (View Single Post)  
Old 21st March 2013
thirdm thirdm is offline
Spam Deminer
 
Join Date: May 2009
Posts: 248
Default

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.
Reply With Quote