Kristofer Wolff wrote:
> hi, i buiold up a new SMTP conection:
>
> $smtp = Net::SMTP->new($MAIL{recive_mailserver});
> print "ms, $MAIL{recive_mailserver}, $!";
>
> and it returns :
> ms, ns2.internet-shop.net, No such file or directory
>
>
>
> what means "No such file or directory" in this Case ?
It might mean that you checked for $! even though no error occured. Like C's
errno, $! is only set if a function returned an error.
In this example, I'd imagine that Net::SMTP->new would return 'undef' if it
couldn't open the connection. If it returns something else, you shouldn't be
checking $!. (Even if it returns undef, it may not set $!; typically, only
Perl's built-in (file) operations set it.)
If you set $! to 0 immediately before calling Net::SMTP->new, do you still
get 'No such file or directory'?
Cheers,
Philip
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web