in reply to Odd number of elements in anonymous hash
my $href = { to => $email, from => $from, from_name => $name, subject => $subject, body => $body, }; if ($code) { $href->{attach_path} = $file_name; $href->{attach_filename} = $file_name; $href->{attach_type} = 'application/txt'; } my $success = email($href);
|
|---|