Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for looking!... for my $email (@mail) { my $attached = ($code) ? "attach_path => '$file_name',attach_filena +me => '$file_name',attach_type => 'application/txt'," : ''; my $success = email( { to => $email, from => $from, from_name => $name, subject => $subject, body => $body, $attached } ); } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Odd number of elements in anonymous hash
by toolic (Bishop) on Jun 09, 2016 at 16:11 UTC | |
|
Re: Odd number of elements in anonymous hash
by tangent (Parson) on Jun 09, 2016 at 16:06 UTC | |
by pryrt (Abbot) on Jun 09, 2016 at 16:15 UTC | |
by Athanasius (Archbishop) on Jun 09, 2016 at 16:23 UTC | |
by tangent (Parson) on Jun 09, 2016 at 16:24 UTC | |
by Anonymous Monk on Jun 09, 2016 at 17:23 UTC | |
by BillKSmith (Monsignor) on Jun 09, 2016 at 18:19 UTC |