Perhaps I am not understanding something. You wrote "I want to 'do something' to files created within a certain range of dates, inclusively." Is that not what you meant?
Either way, you can still use Time::Local and compare your dates in epoch time.
Another option is storing your dates in YYYYMMDD format (as you're already doing); then you can just compare them numerically.
if ($begin_date <= $curr_date and $curr_date <= $end_date) {
print "$curr_date is between $begin_date and $end_date.\n";
}
|