print "connecting to $server..\n"; my $pop = Net::POP3->new($server, Port => 995) or die "error: can't connect to $server: $!\n"; print "ok\n";