in reply to Re: How can I extract the username/domain?
in thread How can I extract the username and hostname/domain from e-mail addresses?

my $from = Mail::Address->parse($header->get("From"));
should be
my($from) = Mail::Address->parse($header->get("From"));
(because Mail::Address->parse returns an array, and we don't want it's length.)