http://qs321.pair.com?node_id=517665


in reply to Re^2: How to do a blocking readdir or similar
in thread How to do a blocking readdir or similar

OS X (which the OP was using) shares more with FreeBSD than Linux, so IO::KQueue is probably a more appropriate choice.

From the README...

This module is a low level interface to the FreeBSD and Mac OS X kqueue() system call. This is basically equivalent to epoll() on Linux - a high performance poll() replacement.

    --k.