in reply to Re^2: GMail IMAP SSL and Perlin thread GMail IMAP SSL and Perl
So can you ping imap.gmail.com? Have you read Gmail IMAP access, apparently it is a working example.