Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Mail:Chimp3 Updating Groups/Interests

by tangent (Vicar)
on Jan 31, 2020 at 01:52 UTC ( #11112150=note: print w/replies, xml ) Need Help??


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:
use strict; use warnings; my %groups = ( 'GroupID1' => true, 'GroupID2' => false );
Errors:
Bareword "true" not allowed while "strict subs" in use Bareword "false" not allowed while "strict subs" in use
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:
my %groups = ( 'GroupID1' => \1, 'GroupID2' => \0 );
Maybe try that and see.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11112150]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2022-01-27 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (70 votes). Check out past polls.

    Notices?