On Oct 5, [EMAIL PROTECTED] said:
Please help me fix this.
Please choose a more descriptive subject line next time.
When I run it, I get the following message:
Can't call method "select" on an undefined value at ./fof_imap1.pl line 12.
This means that $imap is undefined, which means that the object failed to
be created.
my $imap = Mail::IMAPClient->new( Server => $imaphost,
User => $login,
Password=> $pass,
Uid => 1, # optional
);
You should change that to:
my $imap = Mail::IMAPClient->new(...)
or die "couldn't connect to $imaphost as $login:$pass: $@";
as the documentation for the module suggests. $@ will hold the reason for
the failure.
--
Jeff "japhy" Pinyan % How can we ever be the sold short or
RPI Acacia Brother #734 % the cheated, we who for every service
http://www.perlmonks.org/ % have long ago been overpaid?
http://princeton.pm.org/ % -- Meister Eckhart
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>