in reply to Perl ranges
But the easiest would seem to me to be a regular expression (assuming you mean files from the 21st to the 31st in the $time_string field?):
if ($time_string =~ /\d\d\d\d-\d\d-(\d\d)/ && ($1>=21 && $1<=31)) +{ print "File $name has an mtime of $time_string\n"; $ftp->get($name) or die "get failed ", $ftp->message; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl ranges
by merlin's apprentice (Novice) on May 06, 2013 at 13:13 UTC | |
by merlin's apprentice (Novice) on May 06, 2013 at 13:30 UTC | |
|
Re^2: Perl ranges
by merlin's apprentice (Novice) on May 06, 2013 at 13:56 UTC |