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


in reply to Not Quite perl...

If /var/mail/james is empty or doesnt exist If not
This code is untested, and I'm a windows kind of a guy, so test this on some expendable text files first :-)

Smitz