programming-examples/perl/CGI/Retrieving Cookies.pl
2019-11-15 12:59:38 +01:00

13 lines
197 B
Perl

#!/usr/bin/perl -T
use strict;
use CGI qw/:standard/;
my $retrievedcookie = cookie('testcookie');
print header,
start_html,
p("cookie value was $retrievedcookie\n"),
end_html;
exit;