cannot use the same script to read cookie

Hi all,

I am using the following code to read a cookie. when this script is hosted on a unix server(solaris) it runs perfect. but when executed on a windows machine cannot retrieve the cookie.

---------------------------------------
# Modules used
use CGI;
# Create an object of CGI
$query = new CGI;
# Request the cookie with the name MY_COOKIE
$theCookie = $query->cookie('MY_COOKIE');

print "<b>$theCookie";
-------------------------------------------

any help???

thanks in advance
:confused: