http://qs321.pair.com?node_id=82685

odie has asked for the wisdom of the Perl Monks concerning the following question:

Ok. I would like to check whether I have mail or not. I suppose I could do some fancy parsing of /var/spool/mail/username, but as this can sometimes have size 0 and sometimes contain a "non-message" that apparently is a, quote "part of the internal format of your mail folder" it would prove a hassle. And maybe unnecessary.
Is there a fancy pm that can perform such a check on the mail spool or possibly a program that will do this that I can use from within perl?

Odie

--
I am a manual signature virus. Copy me please!