Subject: | WWW::Contact::GMail : Bug |
Date: | Sun, 21 Dec 2008 17:14:08 -0500 |
To: | bug-WWW-Contact [...] rt.cpan.org |
From: | Nishant Mittal <nishttal [...] gmail.com> |
Hi Fayland, First off I want to thankyou for writing a very useful
module.
However, I feel I may have stumbled upon a bug. Please refer to the small code below...
#!/usr/bin/perl
use Data::Dumper;
use WWW::Contact;
my $wc = WWW::Contact->new();
my @contacts = $wc->get_contacts('<email>', '<password>');
my $errstr = $wc->errstr;
if ($errstr) {
die $errstr;
} else {
print Dumper(\@contacts);
}
I got the following output... The problem is that the email and names dont match with each other. For example 'betterchoicemovers@hotmail.com' is the email for 'A Better Choice Estimator' (which is 4 records down) and so on...
do you know what I am doing wrong?
$VAR1 = [
{
'email' => 'betterchoicemovers@hotmail.com',
'name' => '(unknown)'
},
{
'email' => 'aadit12@gmail.com',
'name' => '(unknown)'
},
{
'email' => 'abhihek@meheretech.com',
'name' => '(unknown)'
},
{
'email' => 'abshekgoyl@gmail.com',
'name' => '(unknown)'
},
{
'email' => 'kmarchal@gmail.com',
'name' => 'A Better Choice Estimator'
},
{
'email' => 'aditihaudhary@yahoo.com',
'name' => 'aaditya'
},
{
'email' => 'aditi8@yahoo.com',
'name' => 'abhishek'
},
However, I feel I may have stumbled upon a bug. Please refer to the small code below...
#!/usr/bin/perl
use Data::Dumper;
use WWW::Contact;
my $wc = WWW::Contact->new();
my @contacts = $wc->get_contacts('<email>', '<password>');
my $errstr = $wc->errstr;
if ($errstr) {
die $errstr;
} else {
print Dumper(\@contacts);
}
I got the following output... The problem is that the email and names dont match with each other. For example 'betterchoicemovers@hotmail.com' is the email for 'A Better Choice Estimator' (which is 4 records down) and so on...
do you know what I am doing wrong?
$VAR1 = [
{
'email' => 'betterchoicemovers@hotmail.com',
'name' => '(unknown)'
},
{
'email' => 'aadit12@gmail.com',
'name' => '(unknown)'
},
{
'email' => 'abhihek@meheretech.com',
'name' => '(unknown)'
},
{
'email' => 'abshekgoyl@gmail.com',
'name' => '(unknown)'
},
{
'email' => 'kmarchal@gmail.com',
'name' => 'A Better Choice Estimator'
},
{
'email' => 'aditihaudhary@yahoo.com',
'name' => 'aaditya'
},
{
'email' => 'aditi8@yahoo.com',
'name' => 'abhishek'
},
--
thanks,
Nishant
thanks,
Nishant