in reply to FTP Grep?
@files=$ftp->dir;You're already getting the list of files here. So all you need to do is see loop through the list, see if the file matches your test, and if not, just skip to the next file.
foreach (@files) { next unless /Monk/; print "$_\n"; # do something with $ftp->get... I presume }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: FTP Grep?
by afoken (Chancellor) on Aug 08, 2009 at 17:47 UTC | |
by Anonymous Monk on Aug 11, 2009 at 10:47 UTC |