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 >
Text File  |  1997-11-28  |  347b  |  19 lines

  1. # NOTE: Derived from ./blib/lib/Net/FTP.pm.  Changes made here will be lost.
  2. package Net::FTP;
  3.  
  4. sub parse_response
  5. {
  6.  return ($1, $2 eq "-")
  7.     if $_[1] =~ s/^(\d\d\d)(.?)//o;
  8.  
  9.  my $ftp = shift;
  10.  
  11.  # Darn MS FTP server is a load of CRAP !!!!
  12.  return ()
  13.     unless ${*$ftp}{'net_cmd_code'} + 0;
  14.  
  15.  (${*$ftp}{'net_cmd_code'},1);
  16. }
  17.  
  18. 1;
  19.