in reply to Win32::PingICMP returns odd results
Are you running this script on the *same* machine as your manual testing? I ask because of your wording and use CGI. It is possible that one machine can ping a given IP and a different one can't.