Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: make infinite loop for live directory

by Marshall (Canon)
on Oct 29, 2019 at 06:42 UTC ( [id://11108064]=note: print w/replies, xml ) Need Help??


in reply to make infinite loop for live directory

One way to accomplish this is with a Perl module that will notify you when a directory changes.
Perhaps: File::Monitor?
There could be other modules for this.

You could keep a list of files that have been processed.
When a new file appears, process that new one.

Adjust your list of processed files as each new one comes in.
There can be some issues with this, please explain your application more.

  • Comment on Re: make infinite loop for live directory

Log In?
Username:
Password:

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

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

    No recent polls found