I've just installed the Net::POP3_Auth and Net::POP3 modules for a client of mine. The script is very simple, straight from cpan documentation, it looks like:

#!/usr/bin/perl

use Net::POP3_auth;

$pop = Net::POP3_auth->new('server');
$pop->auth('APOP', 'email', 'password');

print $pop->list;
$pop->quit;

However when the user attempts to run the script, the error is received:

Can't call method "auth" on an undefined value at pop3auth.pl line 6.

This is not a complicated issues and it dies on line 6 which is due to line 5 failing, so it is unable to connect with the imap server (which i've tried 3 valid pop3 servers).

Does anybody have any idea why this would be failing? Thanks for your time.