Skip Menu |

This queue is for tickets about the Email-ConstantContact CPAN distribution.

Report information
The Basics
Id: 54301
Status: new
Priority: 0/
Queue: Email-ConstantContact

People
Owner: arich [...] cpan.org
Requestors: lidl [...] pix.net
Cc:
AdminCc:

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



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