http://www.perlmonks.org?node_id=600224


in reply to Okay I have cleaned it up a little bit

You can use MIME::Lite to send mail.

Even if there was a mail command,
"xxxxxx@xxxxx.com
would need to be
"xxxxxx\@xxxxx.com"
or
'xxxxxx@xxxxx.com'