view perltest/simple-ajax-example.cgi @ 10:3b52ac950753 boosterpack tip

going to try to fix this thing
author Robert McIntyre <rlm@mit.edu>
date Mon, 27 Sep 2010 17:24:06 -0400
parents 477258d09353
children
line wrap: on
line source
1 #!C:/strawberry/perl/bin/perl.exe
2 use CGI;
4 $query = new CGI;
6 $secretword = $query->param('w');
7 $remotehost = $query->remote_host();
9 print $query->header;
10 print "<p>The secret word is <b>$secretword</b> and your IP is <b>$remotehost</b>.</p>";