in reply to
starting a script when a file appears in a directory
This is what the module
Win32::ChangeNotify
is for, it has a wait() function which blocks until the directory content changes, you can then send your email.
Comment on
Re: starting a script when a file appears in a directory
In Section
Seekers of Perl Wisdom