To create multiple cookies, give header() an array reference:So for your specific example, try print $cgi->header( -cookie => [$cookie1,$cookie2,$cookie3] ).$cookie1 = cookie(-name=>'riddle_name', -value=>"The Sphynx's Question +"); $cookie2 = cookie(-name=>'answers', -value=>\%answers); print header(-cookie=>[$cookie1,$cookie2]);
In reply to Re^5: Setting and Reading Cookies
by crashtest
in thread Setting and Reading Cookies
by bigjoe11a
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |