in reply to Cant create a cookie! Please help

Make it easy on yourself... use CGI:
use CGI; use CGI::Cookie; $cookie1 = new CGI::Cookie(-name=>'cookie',-value=>'some value');
See this for more details.

Hot Pastrami