in reply to how to permanently monitor a directory
I don't really see anything wrong with what you have, the only thing I can suggest is you could eliminate a line by using scalar
Lobster Aliens Are attacking the world!if(scalar(@Dircontent) > 2) { # do stuff }
In Section
Seekers of Perl Wisdom