http://www.perlmonks.org?node_id=73560


in reply to ftp multiple files revisited

IIRC put does not take two args, you need to do a cd to $ftp_dest_path($i) first. However I would suggest you look at net::ftp as it will make your life in such code soooo much easier. Have a look on Super search there are lots of nodes showing how to use it.

Replies are listed 'Best First'.
Re: Answer: ftp multiple files revisited
by davorg (Chancellor) on Apr 18, 2001 at 20:40 UTC

    put does take two arguments, the source and destination filesnames. Both can also include paths.

    --
    <http://www.dave.org.uk>

    "Perl makes the fun jobs fun
    and the boring jobs bearable" - me

      Second one is optional...

      put local-file [remote-file]

      mput takes only local filenames...

      mput local-files

      Greetz
      Beatnik
      ... Quidquid perl dictum sit, altum viditur.
        And in this case he was using mput. Thanks for the clarification tho, I was certainly not clear. Tiss just one of those days I guess. *grins*
        --

        Zigster