braymond has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have files with info in it that are created by various applications in unix. I want to monitor these files and report the lines back to a calling program.
What I had in mind is to use modules, loaded dynamically with the eval function, that will be called by a main program. Each module will have predefined functions ('new', 'start' and maybe 'read').
Whenever the main program calls the 'start' function, the module will do its thing while the main program goes on starting other modules.
Anyone has ideas how to call the 'start' functions and then either call a 'read' function or be notified that data is ready to be consumed?
|