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.
In reply to Re^5: Mail::Message->get('received') failing
by Fletch
in thread Mail::Message->get('received') failing
by gw1500se
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |