in reply to Simple Email Check
Three things:
1) For testing purposes use
use CGI::Carp qw(fatalsToBrowser);
This will show you your errors in the browser instead of making you have to look in the error logs
2) Add in lots more print statements as you go along. For example you'll want to print out:
$message_count = scalar keys (%$messages);
to see if you actually have any messages!
3) And finally $connect->top($msg) doesn't return a string, it returns an array ref, so your loop should look like this instead:
foreach $msg (keys %$messages) { my $r = $connect->top($msg); my $m = join ("<BR>",@$r); $grab .="<tr><td> $m </td></tr>"; }
I ran your script with those changes and it worked just fine. Good luck!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Simple Email Check
by Kiko (Scribe) on Jun 07, 2001 at 17:10 UTC | |
by Anonymous Monk on Jun 07, 2001 at 19:54 UTC |
In Section
Seekers of Perl Wisdom