On Thu, 24 Oct 2013 13:52:51 +0200
Janek Schleicher <[email protected]> wrote:

> use Email::Simple;
> 
> my $email = Email::Simple->create(
>    header => [
>      From               => $sender_addr,
>      To                 => '[email protected]',
>      X-Server-Protocol  => $server_protocol,
>      X-Http-User-Agent  => $http_user_agent,
>      X-Http-Referer     => $http_referer,
>      X-Remote-Addr      => $remote_addr,
>      X-Remote-Host      => $remote_host,
>    ],
>    body => $message
> );

Why are you using an anonymous array for the header? Wouldn't an
anonymous hash be better? A hash would insist on an even number of
elements.


-- 
Don't stop where the ink does.
        Shawn

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to