Subject: | Can't use string ("Received: from deliver ([unix so") as a HASH ref while "strict refs" in use at /usr/share/perl5/Email/Simple.pm line 100, <STDIN> line 76. |
When I try to use Email::Simple to parse a mail message from my mailbox with the
sample program:
use Email::Simple;
my $email = Email::Simple->new(<STDIN>);
my $from_header = $email->header("From");
print $from_header, '\n';
I get the following error:
Can't use string ("Received: from deliver ([unix so") as a HASH ref while "strict
refs" in use at /usr/share/perl5/Email/Simple.pm line 100, <STDIN> line 76.
The header line that it appears to be choking on is:
Received: from deliver ([unix socket])
by linux.interlinx.bc.ca (Cyrus v2.4.12-Debian-2.4.12-1~lucid0) with LMTPA;
Fri, 30 Dec 2011 08:14:25 -0500