=head1 Incompatible Changes
-The 4-argument form of select() now returns C<undef> on error (instead of
--1).
-
=head1 Core Enhancements
=head1 Modules and Pragmata
is implementation-dependent. See also L<perlport> for notes on the
portability of C<select>.
-On error, C<select> returns C<undef> and sets C<$!>.
+On error, C<select> behaves like the select(2) system call : it returns
+-1 and sets C<$!>.
Note: on some Unixes, the select(2) system call may report a socket file
descriptor as "ready for reading", when actually no data is available,
}
}
- if (nfound == -1)
- PUSHs(&PL_sv_undef);
- else
- PUSHi(nfound);
+ PUSHi(nfound);
if (GIMME == G_ARRAY && tbuf) {
value = (NV)(timebuf.tv_sec) +
(NV)(timebuf.tv_usec) / 1000000.0;