in reply to Re: Read Directory and getlines in .csv
in thread Read Directory and getlines in .csv

Note that this will recurse into subdirectories of $dir if they exist. His code does not.

I'm not sure how you could achieve that.

Update: I believe this addition to the rule will achieve that.

my @files = File::Find::Rule->file->name('*.csv')->maxdepth(1)->mtime(">$last_24_hours")->in($dir);

Update: poj's use of glob would probably be the better solution