my $rep= new CGI; my $cookie = $rep->cookie("cookiename");