in reply to Re: Re: Re: Net::FTP server errors?
in thread Net::FTP server errors?
The fact that in this particular case $! contains something that might look like the right error message doesn't mean the other procedures will be able to use it as well.
The list of errors that can be found in $! is fixed (and OS dependant). You can find out what it is by
$lastmsg='noNSensE'; $i = 0; $! = $i; while ($lastmsg ne $!) { $lastmsg = ''.$!; print "$i: $!\n"; $i++; $! = $i; }
Try also:
$! = "Hello world"; print "$!\n";
So as you see it is possible to change the $!, but you can't give a very specific error message.
What GhodMode wants is
$ftp->message()
Of course that doesn't work for the "new Net::FTP", but that was not requested.
Jenda
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re(4): Net::FTP server errors?
by Mr. Muskrat (Canon) on Oct 31, 2002 at 21:15 UTC |