Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Watching a directory with POE::Component::DirWatchby chanakya (Friar) |
on Mar 04, 2009 at 12:15 UTC ( [id://748094]=perlquestion: print w/replies, xml ) | Need Help?? |
chanakya has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks, We are making some changes to our system and one of the objectives was to use POE::Component::DirWatch. I tried the following code from the internet, modified to my needs. Main objective of the script is to watch a directory and print the filenames that gets added to that directory The script is able to watch a specified directory and when a file gets added to the directory the script responds. One issue I'm facing is that it is not able to print the file names which came into the directory. Instead it prints "" and empty session id. Below is the output of the script without the filename(s) and the session ID. Please let me know whats the error. Also let me know if there is a shorter way of doing this. I'm using verion 0.20000 of POE::Component::DirWatch Thanks for your help.
Back to
Seekers of Perl Wisdom
|
|