Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: ftp multiple files revisited

by zigster (Hermit)
on Apr 18, 2001 at 20:33 UTC ( #73560=note: print w/replies, xml ) Need Help??

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.


    "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

      ... 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*


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://73560]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2022-01-22 19:01 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (63 votes). Check out past polls.