in reply to cookie problem

my $cookie = $cg->cookie('id'); if ( ! $cookie ) { print $cgi->redirect("home.pl"); }

Which is correct $cg or $cgi ?

poj

Replies are listed 'Best First'.
Re^2: cookie problem
by bigup401 (Pilgrim) on Nov 11, 2014 at 19:50 UTC

    its

    $cg