The code you show cannot be the code you run. $file is never defined.
Do you really need to include MIME::Lite in the program? Is the problem with sending an email or is the problem with getting the events?
Please provide a short, self-contained program that we can run to reproduce your problem. It should be shorter than 20 lines.
In reply to Re: Directory Monitor
by Corion
in thread Directory Monitor
by perlmad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |