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();
In reply to Re: Download file from sftp or FTP
by almut
in thread Download file from sftp or FTP
by gube
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |