in reply to Re^4: Mail::Message->get('received') failing
in thread Mail::Message->get('received') failing

You construct a brand new Mail::Message::Head instance which has no connection to the existing message in $msg that you've read in. It's not surprising that it contains no headers. Perhaps if you try my $head = $msg->head() it'll be more matching your expectations?

(See, I told you showing actual code would help. :)

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^6: Mail::Message->get('received') failing
by gw1500se (Beadle) on Nov 12, 2008 at 19:42 UTC
    I guess I have to stop assuming purported working examples really work. I was puzzled by that too but I thought the 'new' function internally to the package already had what it needed from the 'read'. I'll give it a try.
Re^6: Mail::Message->get('received') failing
by gw1500se (Beadle) on Nov 13, 2008 at 12:13 UTC
    Yep. That did it. I'm giving up on googled examples. I guess when I have a question, I'll ask instead. Thanks again.