Skip to content

Getting "Odd number of elements in hash assignment" when printing result from Email::Sender::sendmail() #206

Description

@neilb

I'm calling code that looks a bit like the following, which is from Email::Sender::Manual::QuickStart


use Email::Sender::Simple qw(sendmail);
use Email::MIME;
use Data::Printer;

my $email = Email::MIME->create(...);
my $result = sendmail($email);
p $result;

I get the following error message:

Odd number of elements in hash assignment at .../Data/Printer.pm line 109.

And then I get the expected output.

% mversion Data::Printer
1.002001
% perl -v

This is perl 5, version 32, subversion 1 (v5.32.1) built for darwin-2level

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions