RE: Trapping Carp::croak

2006-09-14 Thread Bullock, Howard A.
I have stripped my PerlSvc program to a minimal MIME::Lite email program. Using a firewall I blocked access to the mailhost and tested the eval code as both of you suggested and then using an if block to check [EMAIL PROTECTED] The croak was indeed trapped using the syntax: eval

Re: Trapping Carp::croak

2006-09-14 Thread $Bill Luebkert
Bullock, Howard A. wrote: I have stripped my PerlSvc program to a minimal MIME::Lite email program. Using a firewall I blocked access to the mailhost and tested the eval code as both of you suggested and then using an if block to check [EMAIL PROTECTED] The croak was indeed trapped using

RE: Trapping Carp::croak

2006-09-14 Thread Bullock, Howard A.
Did you try the below as a success test ? : if ($msg-last_send_successful) { print message successful\n; } else { print message not successful\n; } No, I did not try that. That method (last_send_successful) is not shown in my local MIME::Lite docs, but I did find it mentioned on

RE: Trapping Carp::croak

2006-09-14 Thread Bullock, Howard A.
Can't locate object method last_send_successful via package MIME::Lite at ReplWatcherCroakTest.pl line 169. I see that I have version 3.01 from the ActiveState repository and that the version on CPAN is now 3.01_05. I do not plan on upgrading until a newer version is available via ppm from the

Re: Trapping Carp::croak

2006-09-14 Thread $Bill Luebkert
Bullock, Howard A. wrote: Can't locate object method last_send_successful via package MIME::Lite at ReplWatcherCroakTest.pl line 169. I see that I have version 3.01 from the ActiveState repository and that the version on CPAN is now 3.01_05. I do not plan on upgrading until a newer version

Re: Trapping Carp::croak

2006-09-14 Thread $Bill Luebkert
Bullock, Howard A. wrote: No, I did not try that. That method (last_send_successful) is not shown in my local MIME::Lite docs, but I did find it mentioned on CPAN. The CPAN docs state: After sending, the method last_send_successful() can be used to determine if the send was successful or