From: Richard Soderberg Date: Sat, 15 Feb 2003 01:27:17 +0000 (-0500) Subject: Re: [perl #20551] Documentation error for IO::Select X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5929cfd6f8a0f5b970af4c44b4cbbb1a2847631a;p=p5sagit%2Fp5-mst-13.2.git Re: [perl #20551] Documentation error for IO::Select Message-Id: <87D7A731-40AE-11D7-9B07-000393801F84@crystalflame.net> p4raw-id: //depot/perl@18853 --- diff --git a/ext/IO/lib/IO/Select.pm b/ext/IO/lib/IO/Select.pm index 7e5d8bd..83c3d4a 100644 --- a/ext/IO/lib/IO/Select.pm +++ b/ext/IO/lib/IO/Select.pm @@ -250,13 +250,13 @@ IO::Select - OO interface to the select system call @ready = $s->can_read($timeout); - @ready = IO::Select->new(@handles)->read(0); + @ready = IO::Select->new(@handles)->can_read(0); =head1 DESCRIPTION The C package implements an object approach to the system C static method. Return the bit string suitable as argument to the core select() call. -=item select ( READ, WRITE, ERROR [, TIMEOUT ] ) +=item select ( READ, WRITE, EXCEPTION [, TIMEOUT ] ) -C is a static method, that is you call it with the package name +like C. C, C and C are either C or +C objects. C is optional and has the same effect as +for the core select call. The result will be an array of 3 elements, each a reference to an array which will hold the handles that are ready for reading, writing and have -error conditions respectively. Upon error an empty array is returned. +exceptions respectively. Upon error an empty list is returned. =back