The author of this module is a giant weirdo.

Have you tried

use Data::Dumper; use Mail::Message::Construct; print Dumper( Mail::Message->read(\"Subject:hello\n\n1\n2\n") ); __END__ $VAR1 = bless( { 'MM_labels' => {}, 'MM_modified' => 0, 'MR_trace' => 4, 'MM_head' => bless( { 'MMH_fields' => { 'message-id' +=> bless( [ + 'Message-ID', + ' mailbox-fjord-232-1041916062 ' + ], 'Mail::Message::Field::Fast' ), 'subject' => +bless( [ + 'Subject', + ' hello ' + ], 'Mail::Message::Field::Fast' ) }, 'MR_trace' => 4, 'MMH_begin' => 0, 'MMH_order' => [ $VAR1->{'MM_he +ad'}{'MMH_fields'}{'subject'}, $VAR1->{'MM_he +ad'}{'MMH_fields'}{'message-id'} ], 'MMH_message' => $VAR1, 'MMH_modified' => 1, 'MMH_end' => '15', 'MR_log' => 4 }, 'Mail::Message::Head::Complete +' ), 'MM_message_id' => 'mailbox-fjord-232-1041916062', 'MM_trusted' => 0, 'MM_body' => bless( { 'MMBL_array' => [ '1 ', '2 ' ], 'MM_modified' => 0, 'MMB_end' => '19', 'MMB_type' => bless( [ 'Content +-Type', ' text/p +lain; charset="us-ascii" ' ], 'Mail:: +Message::Field::Fast' ), 'MMB_begin' => '15', 'MR_trace' => 4, 'MMB_seqnr' => 0, 'MMB_checked' => 0, 'MMB_message' => $VAR1, 'MMB_disposition' => bless( [ ' +Content-Disposition', ' + none ' ], +'Mail::Message::Field::Fast' ), 'MMB_eol' => 'NATIVE', 'MR_log' => 4, 'MMB_transfer' => bless( [ 'Con +tent-Transfer-Encoding', ' no +ne ' ], 'Ma +il::Message::Field::Fast' ) }, 'Mail::Message::Body::Lines' ) +, 'MR_log' => 4 }, 'Mail::Message' );
cause it works for me (same with what you got).

Also, what version of that distribution do you have, cause the latest copy of Mail::Message (our $VERSION = 2.034; # Part of Mail::Box) is only around 550 lines long.


MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
** The Third rule of perl club is a statement of fact: pod is sexy.


In reply to Re: Feeding Mail::Message ... by PodMaster
in thread Feeding Mail::Message ... by holo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.