
zatlas1
Novice
May 13, 2010, 9:44 PM
Post #1 of 3
(1053 views)
|
|
Can't call method "rows" on an undefined value at C:/Perl/site/lib/HTML/TableExtract.pm line 224
|
Can't Post
|
|
I am trying to look at me yahoo email and I do the code bellow. Forget about the regex within the internal foreach, I never get there. The programs dies at the statement: @flist = $y-> folder_list( ); with the message: Can't call method "rows" on an undefined value at C:/Perl/site/lib/HTML/TableExtract.pm line 224 Help, what am I doing wrong in that simple logic?
use Mail::Client::Yahoo; $y = Mail::Client::Yahoo->login ( username => 'user', password => 'password', secure => 0, # 1 is for the paranoid and patient ); @flist = $y-> folder_list( ); foreach $folder(@flist) { $y->select_folder($folder); @ids = $y->message_list(); foreach $id(@ids) { $message = $y->message($id); while ($message =~ m/(\"(.+)\"\s\<(\S+@\S+)\>)|(\<(\S+@\S+)\>)/g) { print $2, ";", $3, ";", $5, "\n"; last; } last; } last; #} $y->logout();
|