in reply to How to find out whether socket is still connected?

In Unix systems, you can try
system 'netstat -na'
and you get information about internet connections
and sockets.

Update: you can try module Net::Netstat::Wrapper

Replies are listed 'Best First'.
Re^2: How to find out whether socket is still connected?
by tcf03 (Deacon) on Aug 11, 2006 at 14:08 UTC
    lsof -Pni :80
    will also do the trick. Of course substituting your port number for 80.

    Ted
    --
    "That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved."
      --Ralph Waldo Emerson