http://qs321.pair.com?node_id=283860


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
if(scalar(@Dircontent) > 2) { # do stuff }
Lobster Aliens Are attacking the world!