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

    Why don't you use grep here?

    my @files=grep /Monk/,$ftp->dir();

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      Sorry for the late reply, but thanks all of you Guys. You are brilliant!! ^-^ :)