Help for this page

Select Code to Download


  1. or download this
     ### Dump the ENCODED body data to a filehandle:
     $body->print(\*STDOUT);
    ...
    
     ### Slurp all the UNENCODED data in, and put it in an array of lines:
     @lines = $body->as_lines;
    
  2. or download this
        for $part( @parts ) {
            my $type = $part->mime_type;
    ...
                close( $OUTFILE );
            }
        }