in reply to Mail:Chimp3 Updating Groups/Interests
It looks like you are not using 'use strict' in your script, if you did you would get errors as 'true' and 'false' have no special meaning in Perl:
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 );
In Section
Seekers of Perl Wisdom