Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: ignore list of files using readdir function (grep filter)

by kaka_2 (Sexton)
on Jul 23, 2013 at 07:10 UTC ( [id://1045785]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1045785]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-26 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found