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


in reply to Mime::parse file output

According to the docs, you can use $parser->tmp_dir("/my/custom/tmpdir"); to manually set a temp directory. Otherwise, the system default temporary directory is used.

edit: Just realized you were asking about output directory, not temp directory. It looks like you might be able to use $parser->output_dir("/tmp"); instead of $parser->output_under("/tmp"); to output everything in the same directory if that works for you.