in reply to closing socket/port

Stop guessing why the socket won't open. Change your die message to die "Can't open socket: $!" unless $server;

Replies are listed 'Best First'.
Re^2: closing socket/port
by halfcountplus (Hermit) on Aug 15, 2009 at 20:32 UTC
    Can't open socket: Address already in use