I believe POSIX::close should take a file descriptor.
In reply to Re: Closing an open socket by its fileno by Fletch in thread Closing an open socket by its fileno by slloyd