Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I would like to rename/prepend the filename that the parser extracts from a multi-part message. Is there a non-deprecated way to do this? Thanks

Replies are listed 'Best First'.
Re: MIME::Parser filename
by runrig (Abbot) on Dec 17, 2010 at 01:34 UTC
    I think the non-deprecated way is to use the underlying filer object:
    $parser->filer->output_prefix('my_prefix');
Re: MIME::Parser filename
by Anonymous Monk on Dec 17, 2010 at 00:02 UTC
    I would like to rename/prepend the filename that the parser extracts from a multi-part message. Is there a non-deprecated way to do this? Thanks

    If the deprecated way works, I say keep using it