in reply to use (of) Net::POP3
Please please please please PLEASE consider running this script as someone other than root. I know you're just testing, but if this test ever changes to go over the network rather than to localhost you will be exposing your root password via clear text over the network.
In addition, working as root on a regular basis is a bad idea. Log in as a normal user and su only when necessary. Very bad things can happen when you're root.