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


in reply to Extremely odd behavior with net::ping and fork

It looks like you might be having multiple processes running at once, I'm wondering if your maincnc.exe program is starting your script again when it starts up.