The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<HTML>
<HEAD>
  <TITLE>MIME::Parser::Results</TITLE>
</HEAD>
<BODY 
       bgcolor="#FFFFFF" link="#CC3366" vlink="#993366" alink="#FF6666">
<FONT FACE="sans-serif" SIZE=-1><A HREF="http://www.zeegee.com" TARGET="_top"><IMG SRC="icons/zeegee.gif" ALT="ZeeGee Software" ALIGN="RIGHT" BORDER="0"></A><A NAME="__TOP__"><H1>MIME::Parser::Results</H1>
</A>
<P><B>This module is <FONT COLOR="#990000">BETA</FONT> code, which means that the interfaces are fairly stable BUT it has not been out in the community long enough to guarantee much testing. Use with caution! Please report any errors back to <A HREF="mailto:eryq@zeegee.com">eryq@zeegee.com</A> as soon as you can.</B><UL>
<LI> <A HREF="#NAME">NAME</A>
<LI> <A HREF="#SYNOPSIS">SYNOPSIS</A>
<LI> <A HREF="#DESCRIPTION">DESCRIPTION</A>
<LI> <A HREF="#PUBLIC_INTERFACE">PUBLIC INTERFACE</A>
<LI> <A HREF="#AUTHOR">AUTHOR</A>
<LI> <A HREF="#VERSION">VERSION</A>
</UL>
</A>

<P><HR>
<A NAME="NAME"><H2><A HREF="#__TOP__"><IMG SRC="icons/h1bullet.gif" ALT="Top" BORDER="0"></A> NAME</H2></A>


<P>MIME::Parser::Results - results of the last entity parsed



<P><HR>
<A NAME="SYNOPSIS"><H2><A HREF="#__TOP__"><IMG SRC="icons/h1bullet.gif" ALT="Top" BORDER="0"></A> SYNOPSIS</H2></A>


<P>Before reading further, you should see <A HREF="../../MIME/Parser.pm.html">MIME::Parser</A> to make sure that 
you understand where this module fits into the grand scheme of things.
Go on, do it now.  I'll wait.


<P>Ready?  Ok...

<FONT SIZE=3 FACE="courier"><PRE>
   ### Do parse, get results:
   my $entity = eval { $parser-&gt;parse(\*STDIN); };
   my $results  = $parser-&gt;results;
   
   ### Get all messages logged:
   @msgs = $results-&gt;msgs;
   
   ### Get messages of specific types (also tests if there were problems):
   $had_errors   = $results-&gt;errors;
   $had_warnings = $results-&gt;warnings;
    
   ### Get outermost header:
   $top_head  = $results-&gt;top_head;
</PRE></FONT>


<P><HR>
<A NAME="DESCRIPTION"><H2><A HREF="#__TOP__"><IMG SRC="icons/h1bullet.gif" ALT="Top" BORDER="0"></A> DESCRIPTION</H2></A>


<P>Results from the last MIME::Parser parse.



<P><HR>
<A NAME="PUBLIC_INTERFACE"><H2><A HREF="#__TOP__"><IMG SRC="icons/h1bullet.gif" ALT="Top" BORDER="0"></A> PUBLIC INTERFACE</H2></A>



<DL>
<P><DT><B><A NAME="item:new">new</A></B></DT>
<DD>
<I>Constructor.</I>

<P><DT><B><A NAME="item:msgs">msgs</A></B></DT>
<DD>
<I>Instance method.</I>  
Return all messages that we logged, in order.
Every message is a string beginning with its type followed by <CODE>&quot;: &quot;</CODE>; 
the current types are <CODE>debug</CODE>, <CODE>warning</CODE>, and <CODE>error</CODE>.

<P><DT><B><A NAME="item:errors">errors</A></B></DT>
<DD>
<I>Instance method.</I>  
Return all error messages that we logged, in order.
A convenience front-end onto msgs().

<P><DT><B><A NAME="item:warnings">warnings</A></B></DT>
<DD>
<I>Instance method.</I>  
Return all warning messages that we logged, in order.
A convenience front-end onto msgs().

<P><DT><B><A NAME="item:top_head">top_head</A></B></DT>
<DD>
<I>Instance method.</I>  
Return the topmost header, if we were able to read it.
This may be useful if the parse fails.

</DL>



<P><HR>
<A NAME="AUTHOR"><H2><A HREF="#__TOP__"><IMG SRC="icons/h1bullet.gif" ALT="Top" BORDER="0"></A> AUTHOR</H2></A>


<P>Eryq (<I><FILE><A HREF="mailto:eryq@zeegee.com">eryq@zeegee.com</A></FILE></I>), ZeeGee Software Inc (<I><FILE><A HREF="http://www.zeegee.com">http://www.zeegee.com</A></FILE></I>).


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



<P><HR>
<A NAME="VERSION"><H2><A HREF="#__TOP__"><IMG SRC="icons/h1bullet.gif" ALT="Top" BORDER="0"></A> VERSION</H2></A>


<P>$Revision: 5.403 $

<P><HR>
<ADDRESS><FONT SIZE=-1>
Generated Wed Jan 17 01:58:32 2001 by cvu_pod2html
</FONT></ADDRESS>
</FONT></BODY>
</HTML>