http://www.perlmonks.org?node_id=1037942


in reply to Mime::parse file output

G'day SneakZa,

Firstly, I'll assume you mean MIME::Parser (which is the closest to Mime::parse I can find on CPAN).

If you look further down the documentation to Specifying output destination, you'll find more details including a link to MIME::Parser::Filer. The output_path(), output_dir() and output_filename() methods look promising; however, depending on what you want to do, other methods may be more appropriate: for instance, if you wanted the pathname in order to perform some cleanup of files, then purge() might be a better choice.

-- Ken