in reply to Mail:Chimp3 Updating Groups/Interests
Errors:use strict; use warnings; my %groups = ( 'GroupID1' => true, 'GroupID2' => false );
Your hash will be turned into a JSON structure before it is sent to MailChimp, and the way to represent JSON true and false in a Perl hash is:Bareword "true" not allowed while "strict subs" in use Bareword "false" not allowed while "strict subs" in use
Maybe try that and see.my %groups = ( 'GroupID1' => \1, 'GroupID2' => \0 );
|
|---|