in reply to Re: RE: Automatic FTP Script?
in thread Automatic FTP Script?

Try installing the libnet bundle, works fine with my Activestate Perl and will install the Net::FTP for you:
>ppm install libnet
Then look at the examples a simple ftp get shouldnt need more than ten lines of code or so.

Replies are listed 'Best First'.
Re: Re: Re: RE: Automatic FTP Script?
by Anonymous Monk on Jan 19, 2002 at 22:54 UTC
    I'm wondering if anyone has been able to find/create an mget function for Net::FTP. Thanks.
      use Net::FTP::Common;
      ... # Get all .png files (and .PNG, .Png, etc) for ($object->grep(Grep => qr/\.png$/i)) { $object->get(File => $_); }
      Note: this uses a regex, not a glob! And this snippet would also download files with names ending in ".png\n".

      2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$