I'm trying to read the "from" and "subject" fields from the messages in a POP3 mailbox (I don't care about the content of the messages), and have cobbled together the following code from online examples:
use Net::POP3;
# $MAILSERVER,$MAILUSER,$MAILPASS defined here!
# Constructors
$pop =...