in reply to Pulling out the value from a cookie

Straight from the POD of CGI.pm

To create a cookie
$cookie = $query->cookie(-name=>'sessionID', -value=>'xyzzy', -expires=>'+1h', -path=>'/cgi-bin/database', -domain=>'.capricorn.org', -secure=>1); print $query->header(-cookie=>$cookie);


To retrieve a cookie, request it by name by calling cookie() method without the -value parameter
use CGI; $query = new CGI; $riddle = $query->cookie('riddle_name'); %answers = $query->cookie('answers');


grep
Just me, the boy and these two monks, no questions asked.