Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$dir = "http://myserver.com/images"; opendir(DIR, $dir) or die $!; while (my $file = readdir(DIR)) { # only files next unless (-f "$dir/$file"); # find files ending in .JPG next unless ($file =~ m/\.JPG$/); print "$file\n"; # Here I need to send all found pictures to a location in my l +ocal directory. } closedir(DIR); exit 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Open Remote Directory
by clinton (Priest) on May 09, 2007 at 16:10 UTC | |
|
Re: Open Remote Directory
by sgifford (Prior) on May 09, 2007 at 16:41 UTC | |
|
Re: Open Remote Directory
by jasonk (Parson) on May 09, 2007 at 16:08 UTC |