Listing 2: show-cookies.pl, Program to Display All Cookies
# Create an instance of CGI
my $query = new CGI;
print $query->start_html(-title =>
# Create a new cookie with a name "counter" and
# the value "1".
my @cookies = $query->cookie;
my $cookie = "";
foreach $cookie (@cookies)
print "<P>$cookie = ",
# Send some HTML as a placeholder
Copyright © 1994 - 2017 Linux Journal. All rights reserved.