http://www.perlmonks.org?node_id=1004508

prashantktyagi has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I am using IO::Socket::INET in one of my server application. It was working fine before then I did some changes to it and rebuild this.
Secondly this machine has been re-imaged once too.
After that I am getting issue (not always)randomly while using this service on below line.

IO::Socket::INET->new ( LocalPort => $port, Listen => 1 ); I debuged this and got this error strings.. $!--Bad file descriptor, $^E--An operation was attempted on something +that is not a socket.

However strange thing is I am getting this issue randomly.
Please suggest me.