APM: File descriptors

Brian Michalk michalk at awpi.com
Thu Mar 6 09:07:36 CST 2003

Is there a way to test if a socket can be written to without using a
select() call?

$fh is the handle I want to write to
$bfh_select is the select object with a lot of socket handles

The way it is now:
foreach my $tfh ($bfh_select->can_write(0)) {
	if ($fh == $tfh) {
		write something out

What I would like to do is have something similar without the select, like:
if ($fh->can_write()) { write something to $fh};

More information about the Austin mailing list