Subject: | _request expects a hash but example code only provides one item, not two? |
The example code in the POD generates the following error:
Odd number of elements in hash assignment at /Library/Perl/5.18/WWW/Mailchimp.pm line 167.
lines 165 to 167 are:
my $self = shift;
my $method = shift;
my %args = ref($_[0]) ? %{$_[0]} : @_;
The calling code is:
my $subscribers = $mailchimp->listMembers( $lists->{data}->[0]->{id} );
so we pass in ourselves (mail chimp), a method (listMembers) and a scalar (the id). The ternary operator says 'not a ref, so it's a list' - but it isn't?
Also, do you guys have any plans to update to v2.0 of the API?
cheers!