in reply to Trouble with cookies

You need to include the cookies when you send the header.

$cookie = $q->cookie(-name=>"username",-value=>$username); print $q->header(-cookie=>$cookie);

You should also read merlyn's column on the subject.

--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';