Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Checking Directory contents in Perl

by onkar (Novice)
on Dec 17, 2009 at 07:00 UTC ( [id://813146]=perlquestion: print w/replies, xml ) Need Help??

onkar has asked for the wisdom of the Perl Monks concerning the following question:

I have a situation wherein , if the user puts a file in the directory I need to do processing on the file , and rest of the time s +leep(). How do I detect that there is a change in directory content e +fficiently ( i.e., without listing ). while(1) { probe_dir_changes(......); sleep(1); }

Replies are listed 'Best First'.
Re: Checking Directory contents in Perl
by stefbv (Priest) on Dec 17, 2009 at 07:23 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2026-04-10 16:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.