freelanceprogrammers.org Forum Index » Perl

problem with accesing yahoo using perl program


View user's profile Post To page top
combiofriends Posted: Sun Oct 09, 2005 12:53 am


Joined: 10 May 2005

Posts: 7
problem with accesing yahoo using perl program
Hello,
I had downloaded and installed Mail::Client::Yahoo
from cpan.org. It went fine. After that i just
executed the sample program in cpan to access yahoo
mails.
The program is just this

--------------------------------------------------------
use Mail::Client::Yahoo;

$y = Mail::Client::Yahoo->login(
username => `bob`,
password => `secret`,
secure => 1, # for the paranoid and
patient
);

$y->select_folder(`Inbox`);

$m = $y->message(0); # is equivalent to...
@ids = $y->message_list();
$y->message($id[0]);

$y->delete_message(0);

$y->logout();

-------------------------------------------------------

When i executed this program i got this error.

Can`t call method "rows" on an undefined value at
/usr/lib/perl5/site_perl/5.8.5/HTML/TableExtract.pm
line 227.

I again executed it with perl debugger. I got a more
detailed explanation of the error. Can someone through
some hint to debug this.

Debug message
Can`t call method "rows" on an undefined value at
/usr/lib/perl5/site_perl/5.8.5/HTML/TableExtract.pm
line 227.
at
/usr/lib/perl5/site_perl/5.8.5/HTML/TableExtract.pm
line 227

HTML::TableExtract::rows(`HTML::TableExtract=HASH(0x9cf99fc)`)
called at
/usr/lib/perl5/site_perl/5.8.5/Mail/Client/Yahoo.pm
line 206

Mail::Client::Yahoo::_fetch_folder_stats(`Mail::Client::Yahoo=HASH(0x9507b90)`)
called at
/usr/lib/perl5/site_perl/5.8.5/Mail/Client/Yahoo.pm
line 233

Mail::Client::Yahoo::select_folder(`Mail::Client::Yahoo=HASH(0x9507b90)`,
`Inbox`) called at autoaccess.pl line 7


As far as i understand it says rows in tableextract.pm
is undefined. The corresponding line from
tableextract.pm is


sub rows { shift->first_table_found->rows(@_) }


If someone can help me, Thanks in advance.

Deepan







------------------------------------------------------------------
Deepan Chakravarthy N,
College student by day, Programmer by nite.
------------------------------------------------------------------
Home Page: http://users.kaski-net.net/~deepan/
Center for Biotechnology,
Anna University, Chennai,
Tamil Nadu, India.
Ph 91-44-55127050



__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help