FAQ

Am 24.10.2013 15:07, schrieb Shawn H Corey:
my $email = Email::Simple->create(
header => [
From => $sender_addr,
To => 'admin@tristatelogic.com',
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.
I just followed the synopsis of the documentation of this CPAN-Module as
you can find it here: https://metacpan.org/pod/Email::Simple :-)

I agree to you, that a ref to a hash like header => { ... } would
somehow be more logic, but I didn't wrote this CPAN module.


Greetings,
Janek

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 13 of 23 | next ›
Discussion Overview
groupbeginners @
categoriesperl
postedOct 23, '13 at 10:18p
activeOct 25, '13 at 5:30a
posts23
users8
websiteperl.org

People

Translate

site design / logo © 2021 Grokbase