in reply to trouble with MIME::Tools
Once you get it working, you can try collapsing it back to something briefer, or not, depending on clarity and your specific needs. But for starters, I would try breaking down the steps and insuring each one works along the way. Peace,my $headers = $entity->head(); die "No headers in entity!" unless defined $headers; my $subject = $headers->get('Subject'); $subject ||= '(empty)'; print "Subject is: $subject\n";
|
|---|