my $receiver = Mail::Transport::POP3->new(...); my $message = $receiver->receive($id);
See SYNOPSIS in Mail::Transport::Receive
Receive messages via the POP3 protocol from one remote server, as specified in rfc1939. This object hides much of the complications in the protocol and recovers broken connections automatically. Although it is part of the MailBox distribution, this object can be used separately.
You probably should not use this module, but Mail::Box::POP3. This module is the interface to POP3, whereas Mail::Box::POP3 hides the protocol weirdness and works as any other mail folder.