# Watch for read readiness on a filehandle. $kernel->select_read( $file_handle, $event, @optional_args ); #### ($k, $sock, $optarg1) = @_[KERNEL, ARG0, ARG1]; #### Select events include two parameters. ARG0 holds the handle of the file that is ready. ARG1 contains 0, 1, or 2 to indicate whether the filehandle is ready for reading, writing, or out-of-band reading (otherwise knows as "expedited" or "exception"). ARG2..$#_ contain optional additional parameters passed to POE::Kernel's various I/O watcher methods. #### ($k, $sock, $status, $optarg1) = @_[KERNEL, ARG0, ARG1, ARG2];