Sisyphus wrote:
> Yes, I think you used eval() improperly. You probably wanted:
>
> eval {$msg->send};
> if (!$@) {
> print "message sent\n";
> }
> else {
> print "Failed to send: [EMAIL PROTECTED]";
> }
While I would agree that your (and my) method work properly, I
believe there's nothing wrong with his version either.
His eval should return the result of the send (rather than the
eval error message) and he's if'ing on that result - so he should
be fine.
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs