programming-examples/perl/CGI/A Simple Cookie Example.pl
2019-11-15 12:59:38 +01:00

10 lines
179 B
Perl

#!/usr/bin/perl -T
use strict;
print "Content-type: text/html\n";
print "Set-Cookie: testcookie=testvalue;";
print "\n\n";
print "You've received a cookie<p>\n";
exit;