Subject: | cannot delete values from existing contact |
If I use the Email::ConstantContact module to retrieve
a contact, I can get/set values in the various fields (and
custom fields).
However, I get an error when I attempt to remove a value
entirely from one of the fields of a contact:
Use of uninitialized value in pattern match (m//) at
/usr/local/lib/perl5/site_perl/5.8.9/XML/Writer.pm line 770.
Use of uninitialized value in pattern match (m//) at
/usr/local/lib/perl5/site_perl/5.8.9/XML/Writer.pm line 346.
Use of uninitialized value in join or string at
/usr/local/lib/perl5/site_perl/5.8.9/XML/Writer.pm line 1141.
The code that triggers this is (email address changed):
use Email::ConstantContact;
use Data::Dumper;
my $cc = new Email::ConstantContact($apikey, $username, $password);
my $old_contact = $cc->getContact('nobody@example.com');
print Data::Dumper->Dump([$old_contact], [qw(*old_contact)]);
$old_contact->{CustomField4} = "";
$old_contact->save();
exit 0;
I get the same result setting the value to "undef".
Details:
This is perl, v5.8.9 built for i386-freebsd-64int
Email::ConstantContact -- 0.03
OS: FreeBSD 7.2-RELEASE on i386