programming-examples/perl/CGI/Read cookie value.pl

17 lines
186 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!c:/perl/bin
use CGI;
$q1 = new CGI;
print $q1->header;
$cookie1 = $q1->cookie('FIRST_NAME');
if($cookie1)
{
print $cookie1;
}
else
{
print "No such Cookie!";
}