Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Download file from sftp or FTP

by almut (Canon)
on Dec 28, 2009 at 18:14 UTC ( [id://814641]=note: print w/replies, xml ) Need Help??


in reply to Download file from sftp or FTP

The get method does not do wildcard expansion, which is why "*_3rdParty.csv" does not work.

Unfortunately, Net::FTP doesn't have an mget command/method (like many system ftp tools), so you'd have to roll one yourself. Something like this (untested):

$ftp->get($_) for grep /_3rdParty\.csv$/, $ftp->ls();

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-23 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found