in reply to Re: Perl ranges
in thread Perl ranges

Thanks Mike! Let me try that and get back to you with my findings...

Replies are listed 'Best First'.
Re^3: Perl ranges
by merlin's apprentice (Novice) on May 06, 2013 at 13:30 UTC

    Hi Mike, I tried that this way:

    my $time_string = strftime "%Y-%m-%d", gmtime($mtime); if ($time_string =~ 2013-04-01 && ($1>=01 && $1<=20)) { print "File $name has an mtime of $time_string\n"; $ftp->get($name) or die "get failed ", $ftp->message;

    And it still didn't work for me. You see, what I'd like for it to do is change the day only incrementally from the 1st of the month to the 20th of the month (as in the example above) Is there any way I could do that using your code?