At 17:49 -0400 7/1/99, strider corinth wrote: > Is there a good test anyone knows of to tell if a filehandle (specifically > a socket) is really open? I've tried fileno(FILEHANDLE), but it likes to > return the descriptor even if the filehandle has been disconnected. Unfortunately, a disconnected filehandle would not, precisely, be _closed_. That is, fileno should tell you if it's open or not, but your situation is open and disconnected. If fileno comes back still open, what does eof tell you? -- -- |\ _,,,---,,_ Vicki Brown <vlb@cfcl.com> ZZZzz /,`.-'`' -. ;-;;,_ Journeyman Sourceror: Scripts & Philtres |,4- ) )-,_. ,\ ( `'-' P.O. Box 1269 San Bruno CA 94066 '---''(_/--' `-'\_) http://www.cfcl.com/~vlb http://www.macperl.com ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org