Skip Menu |

This queue is for tickets about the WWW-Mailchimp CPAN distribution.

Report information
The Basics
Id: 105910
Status: stalled
Priority: 0/
Queue: WWW-Mailchimp

People
Owner: justin.d.hunter [...] gmail.com
Requestors: nate [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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!
I currently do not utilize this module or Mailchimp myself. Patches or failing tests are welcome. On Thu Jul 16 19:14:40 2015, NATE wrote: Show quoted text
> 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!