Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    #
    use strict;
    ...
    { buf_ref => \$attachment->{payload} } )
    or die "Can't write $attachment->{filename}: $!\n";
    }
    
  2. or download this
    my $stripper = Email::MIME::Attachment::Stripper->new($intext);
    my $email_mime = $stripper->message;