MIME::P...:Results(3)

πŸ’– MIME::Parser::Results(3) β€” results of the last entity parsed πŸ’–

okay bestie, this is MIME::Parser::Results from the User Contributed Perl Documentation, and it is literally the receipts module for your MIME parsing. let's get into it 🫢


✨ NAME ✨

MIME::Parser::Results β€” the results of the last entity parsed, no cap πŸŽ€


🌸 SYNOPSIS 🌸

Before you read ANY further, bestie, you gotta go see MIME::Parser first so you actually understand where this little module fits in the grand scheme of things. go on. do it now. I'll wait. πŸ’…

Ready? ok…

### Do parse, get results:
my $entity = eval { $parser->parse(\*STDIN); };
my $results  = $parser->results;

### Get all messages logged:
@msgs = $results->msgs;

### Get messages of specific types (also tests if there were problems):
$had_errors   = $results->errors;
$had_warnings = $results->warnings;

### Get outermost header:
$top_head  = $results->top_head;

πŸ¦‹ DESCRIPTION πŸ¦‹

It's the results from the last MIME::Parser parse. that's the whole vibe. 🧚


πŸ‘‘ PUBLIC INTERFACE πŸ‘‘

πŸ“ new

Constructor. that's it, that's the whole thing ✨

πŸ“ msgs

Instance method. Returns all the messages we logged, in order. Every single message is a string that starts with its type, then ": ", and the types we currently have are "debug", "warning", and "error". iconic little trio tbh πŸ’œ

πŸ“ errors

Instance method. Returns all the error messages we logged, in order. It's just a convenience front-end sitting on top of msgs(). slay, we love a shortcut 🌈

πŸ“ warnings

Instance method. Returns all the warning messages we logged, in order. Also a convenience front-end onto msgs(). fr fr πŸŽ€

πŸ“ top_head

Instance method. Returns the topmost header, if we were able to read it. and lowkey this one is so useful when the parse fails and you're sitting there like 😭


🌈 SEE ALSO 🌈

  • MIME::Tools
  • MIME::Parser

go read those too, bestie, iykyk πŸ’–


πŸ’œ AUTHOR πŸ’œ

Eryq (eryq@zeegee.com), ZeeGee Software Inc (http://www.zeegee.com).

All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


and that's the whole page, bestie!! this one's running on perl v5.42.0 and it was dated 2026-02-11 β€” MIME::Parser::Results(3) ate and left no crumbs. periodt πŸ’…βœ¨

πŸ“¦ where this page comes from