cat some_email_file | /path-to/your_script.pl