![]() |
|
XP is just a number | |
PerlMonks |
Re: Simple Email Checkby Henri Icarus (Beadle) |
on Jun 07, 2001 at 05:49 UTC ( #86452=note: print w/replies, xml ) | Need Help?? |
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:
I ran your script with those changes and it worked just fine. Good luck!
In Section
Seekers of Perl Wisdom
|
|