in reply to Re: ignore list of files using readdir function (grep filter)
in thread ignore list of files using readdir function

Hello There,

I was able to use the grep in order to ignore the files with pattern

sub GetINDirFiles { my ($path) = @_; opendir DIR, $path or die $!; my @files = readdir DIR; my @files = grep {!/\_ACK_/} readdir DIR; closedir DIR; return(@files); }
now the problem i have is that there are around 5000 files and later when i compare these files agains another list of files, it takes too much time.

So i was thinking is it possible to list files which are between current time to current time - 15 minute?

Thank You. -KAKA-

Replies are listed 'Best First'.
Re^3: ignore list of files using readdir function (grep filter)
by Anonymous Monk on Jul 23, 2013 at 08:05 UTC

    So i was thinking is it possible to list files which are between current time to current time - 15 minute?

    Yes , of course it is possible, see stat and time