1MIME::Parser::Results(3U)ser Contributed Perl DocumentatiMoInME::Parser::Results(3)
2
3
4

NAME

6       MIME::Parser::Results - results of the last entity parsed
7

SYNOPSIS

9       Before reading further, you should see MIME::Parser to make sure that
10       you understand where this module fits into the grand scheme of things.
11       Go on, do it now.  I'll wait.
12
13       Ready?  Ok...
14
15          ### Do parse, get results:
16          my $entity = eval { $parser->parse(\*STDIN); };
17          my $results  = $parser->results;
18
19          ### Get all messages logged:
20          @msgs = $results->msgs;
21
22          ### Get messages of specific types (also tests if there were problems):
23          $had_errors   = $results->errors;
24          $had_warnings = $results->warnings;
25
26          ### Get outermost header:
27          $top_head  = $results->top_head;
28

DESCRIPTION

30       Results from the last MIME::Parser parse.
31

PUBLIC INTERFACE

33       new Constructor.
34
35       msgs
36           Instance method.  Return all messages that we logged, in order.
37           Every message is a string beginning with its type followed by ": ";
38           the current types are "debug", "warning", and "error".
39
40       errors
41           Instance method.  Return all error messages that we logged, in
42           order.  A convenience front-end onto msgs().
43
44       warnings
45           Instance method.  Return all warning messages that we logged, in
46           order.  A convenience front-end onto msgs().
47
48       top_head
49           Instance method.  Return the topmost header, if we were able to
50           read it.  This may be useful if the parse fails.
51

SEE ALSO

53       MIME::Tools, MIME::Parser
54

AUTHOR

56       Eryq (eryq@zeegee.com), ZeeGee Software Inc (http://www.zeegee.com).
57
58       All rights reserved.  This program is free software; you can
59       redistribute it and/or modify it under the same terms as Perl itself.
60
61
62
63perl v5.38.0                      2023-07-20          MIME::Parser::Results(3)
Impressum