You can pass -cookie parameter to redirect method:
use strict; use warnings; use CGI qw(:standard); my $cookie = cookie( -name => 'test', -value => 'tset' ); print redirect( -uri => '/', -cookie => $cookie );
In reply to Re: Using CGI: set cookie and redirect
by zwon
in thread Using CGI: set cookie and redirect
by rpike
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |