Retrieving Cookies : Cookie « CGI « Perl
- Perl
- CGI
- Cookie
Retrieving Cookies
#!/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;
Related examples in the same category