Subject: | ... or die won't work in Parser |
From Parser in function parse_data:
$ENCODED->flush or die "$ME: can't flush: $!";
$ENCODED->seek(0, 0) or die "$ME: can't seek: $!";
... the or dies are newly introduced, they are not there in earlier versions.
It breaks a script I have done which does something like this:
my $parser = new MIME::Parser;
$parser->output_to_core(1);
$parser->tmp_recycling(1);
$parser->tmp_to_core(1);
my $entity = $parser->parse_data($mail->as_string);
What happens with the "or die"-things is that get an undefined value in $entity, and if I remove "or die" it works just as fine as it did with earlier versions of MIME::Tools.