in reply to Emergency Sentry Robot

A better solution is a more secret solution. Try tripwire. It ain't perl but it provides an elegant and feature-rich solution to exactly the monitoring you are talking about.
click me