http://www.perlmonks.org?node_id=11707


in reply to Re: Extracting a list of email addresses from a mail header
in thread Extracting a list of email addresses from a mail header

I think you are bypassing the documented interface of Mail::Header by accessing its internal data like that (mail_hdr_hash). The following gives you the headers with the keyword removed:
push @hlines, $header->get('To'); push @hlines, $header->get('Cc'); push @hlines, $header->get('Bcc');
According to the Mail::Header documentation, get() in array context returns "a list of all the text from all the instances of TAG". Which should be what you are looking for.

--ZZamboni