home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
perl_ste.zip
/
auto
/
Net
/
FTP
/
parse_response.al
< prev
next >
Wrap
Text File
|
1997-11-28
|
347b
|
19 lines
# NOTE: Derived from ./blib/lib/Net/FTP.pm. Changes made here will be lost.
package Net::FTP;
sub parse_response
{
return ($1, $2 eq "-")
if $_[1] =~ s/^(\d\d\d)(.?)//o;
my $ftp = shift;
# Darn MS FTP server is a load of CRAP !!!!
return ()
unless ${*$ftp}{'net_cmd_code'} + 0;
(${*$ftp}{'net_cmd_code'},1);
}
1;