On Mon, 30 Nov 2009 04:06:36 +0100
Aristotle Pagaltzis pagalt...@gmx.de wrote:
Seems to me that it is the job of IO::Foo classes to respond to
a `select` as being ready to read from, if they have buffered
data, even if the underlying handle is not.
I don’t know if that response is
* Rob Janes janes@gmail.com [2009-11-28 11:45]:
The fix is a hack to Net::Cmd,
my $select_ret = UNIVERSAL::can($cmd, 'pending') $cmd-pending ? 1
: select($rout = $rin, undef, undef, $timeout);
Please do not write `UNIVERSAL::can($foo, $some_method)` for any
other value of $some_method
The Q at the bottom is about changing the IO::Handle api to accomodate
IO::Socket::SSL's pending method.
I wrote a perl to capture gmail, first using imap via
Mail::IMAPClient, then pop3 via Net::POP3. with pop3 the difficulty
is that Net::POP3 doesn't do ssl, for pop3s, which is all gmail