Subject: | Can't locate object method "host" via package "URI::_foreign" |
This test program reports
Can't locate object method "host" via package "URI::_foreign" at
/usr/local/share/perl/5.10.0/Email/Folder/POP3.pm line 22.
#!/usr/bin/perl -wT
use strict;
use Email::Folder;
use Email::FolderType::Net;
# insert your pop3 data here
my $hostname = 'ff';
my $server = 'ff';
my $user = 'uu';
my $password = 'pp';
my $url = "pop3://$user:$password\@$server";
my $pop3 = Email::Folder->new($url) or
die "Cannot connect to $server: $!";
print "folders: ";
print $_->header('Subject') for $pop3->messages;
print "\n";