In addition to Mail::header (which is almost certainly the best starting place) you may wish to also look at Mail::Field both of which are part of MailTools.

In reply to Re: Re: Finding e-mail headers by Callum
in thread Finding e-mail headers by AssFace

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