$cookie_out = $q->cookie(-name=>"wolves", -path=>'/', #or -path=>'/cgi-bin/' for your cgi-bin directory -value=>"cookieinfo",-expires=>'+24h');