in reply to Net::FTP and standard output

$ftp->message(); returns the responses from the other end (as an array of \n terminated lines) after each command, and $ftp->code returns the message number.

    Does Net::FTP open up a seperate shell and run the ftp session through this?

No.  Only thing I can think, you could $|++ to autoflush STDOUT.  But it really must be somewhere else, ie., in the calling program.

  p

Replies are listed 'Best First'.
Re: Re: Net::FTP and standard output
by WintersMystic (Novice) on Jan 03, 2002 at 09:16 UTC
    how exactly does one use $ftp->message()

    i tried it once, like this

    $mess = $ftp->message(); print "$mess";

    but i either got a single digit number and nothing else or no text at all. id like to learn how to use all the Net::CMD features for Net::FTP usage, but i cant find any place that show any examples. and i learn much better from examples. :)

      Try
      @mess = $ftp->message(); print "@mess";
      I guess I pretty much just walked through the stuff using the debugger to get at the "inner" functionality.  And, yea, that "${*$ftpv}{net_cmd_resp}" stuff is strange.

        p