http://www.perlmonks.org?node_id=232763


in reply to cookie AND redirect...

use CGI qw(:standard); #do everything print redirect( -url => $redirect_url, -cookie => cookie( -name => 'WHATEVER', -value => 'see_NB' ) );
NB: check merlyn's previous reply (and article) for a good policy about what should go and what shouldn't go in cookies.


$|=$_="1g2i1u1l2i4e2n0k",map{print"\7",chop;select$,,$,,$,,$_/7}m{..}g