in reply to An FTP question
From perldoc Net::FTP:
put ( LOCAL_FILE , REMOTE_FILE )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.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.
...roboticus
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: An FTP question
by cdarke (Prior) on Apr 20, 2007 at 11:46 UTC | |
by naikonta (Curate) on Apr 20, 2007 at 12:01 UTC |