in reply to An FTP question

DV:

From perldoc Net::FTP:

put ( LOCAL_FILE , REMOTE_FILE )
Put a file on the remote server. "LOCAL_FILE" may be a name or a filehandle. If "LOCAL_FILE" is a filehandle then "REMOTE_FILE" must be specified. If "REMOTE_FILE" is not specified then the file will be stored in the current directory with the same leafname as "LOCAL_FILE". Returns "REMOTE_FILE", or the generated remote filename if "REMOTE_FILE" is not given.
You'll have to do the expansion yourself. When I get to work later, I'll put up some code that I use to get multiple files. Basically, you use the ls or equivalent method to get the list of filenames, then grep to get the list that match your regex, and then successively get the matches.

...roboticus

Replies are listed 'Best First'.
Re^2: An FTP question
by cdarke (Prior) on Apr 20, 2007 at 11:46 UTC
      But what roboticus meant could be the ls() method, which is supported by Net::FTP.
      Update: fixed worng poster name.

      Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!