Hey gang! I am trying to update a script so that it is not so resource (CPU) intensive.
Background: 1. The script has to open a rather large number of files (100,000). 2. Instead of opening all of them, I am trying to only open those files where the file was actually MODIFIED not just accessed within the last 20 minutes. 3. Can someone help in telling me if the following is on the right path? $path = "$path$dir$file_check"; #$last_modified = $^T - int (( -M $path) / 86400); #$last_modified = int ( -M $path); if (-M "$path" >= (20 / 1440)) { next; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>