programming-examples/perl/CGI/Retrieving Multiple Cookies.pl

13 lines
280 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl -T
use strict;
use CGI qw/:standard/;
my $retrievedcookie1 = cookie('testcookie');
my $retrievedcookie2 = cookie('secondcookie');
print header,
start_html,
p("values were $retrievedcookie1 and $retrievedcookie2\n"),
end_html;
exit;