in reply to Re^4: Help with ReadDir and Stat?
in thread Help with ReadDir and Stat?

localtime returns a list. You need indexes 3, 4, and 5 from that list. You're code can be modified like this:
my $lctime = strftime("%m_%d_%y",localtime[3 .. 5]); my $fltime = strftime("%m_%d_$y",localtime(stat($filename)[9])[3 .. 5] +); if ($lctime = $fltime) { # processs file data }