in reply to Re: CGI.pm: cookie AND redirect
in thread CGI.pm: cookie AND redirect

oops, need to print the results of redirect:
print $q->redirect( -uri => $url , -cookie => $cookie );