bfdi533 has asked for the wisdom of the Perl Monks concerning the following question:
I am writing a script to use Mail::Webmail::Yahoo and am running a curious anomoly.
Here is my code:
#!/usr/bin/perl -w use Data::Dumper; use Mail::Webmail::Yahoo; %options = ( username=>'username@yahoo.com', password=>'password' ); #print Dumper(%options); $yahoo = Mail::WebMail::Yahoo->new(%options); @folders = $yahoo->get_folder_list(); @messages = $yahoo->get_mail_messages('Inbox', 'all'); # Write messages to disk here, or do something else.
The error I am getting is:
Can't locate object method "new" via package "Mail::WebMail::Yahoo" (p +erhaps you forgot to load "Mail::WebMail::Yahoo"?) at ./check_yahoo_e +mail.pl line 9.
What is strange here is that when I comment the use line for Mail::Webmail::Yahoo, I get the exact error message. I have never run into this before.
Does anyone have an explanation or tips to get this working?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Module not loading?
by jethro (Monsignor) on Jun 29, 2009 at 19:40 UTC | |
by bfdi533 (Friar) on Jun 29, 2009 at 19:59 UTC |