Subject: | Module does not work using sample given in pod description |
I attempted to use the module on Ubuntu running a version of perl 5.10
that I compiled on the machine. I used the script example in the pod
but substituted my username/password. I tried to dump out the labels I
have in my gmail account.
#!/usr/local/bin/perl
use strict;
use Data::Dumper;
use Mail::Webmail::Gmail;
my $gmail = Mail::Webmail::Gmail->new(
username => 'username', password => 'password',
);
my @labels = $gmail->get_labels();
print Dumper(@labels);
I received the error
Use of uninitialized value $host in concatenation (.) or string at
/usr/local/lib/perl5/site_perl/5.10.0/LWP/Protocol/http.pm line 25.
Use of uninitialized value $page in pattern match (m//) at
/usr/local/lib/perl5/site_perl/5.10.0/Mail/Webmail/Gmail.pm line 1425.