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; }
In reply to Re: Perl ranges
by RMGir
in thread Perl ranges
by merlin's apprentice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |