I understand the basic concepts of Perl and I'm trying to create a script that will send an email when a new file is found inside an specific directory.

For example, let say I have directory /tmp on my Linux server. The script will scan the contents of that directory every 5 minutes, (i can use cron to run the script every 5 minutes) if the script finds a new file it will send me an email.

Can someone send me in the correct direction on how I can start building this?