Mercurial > rlmcintyre
diff BoosterPack/perltest/.svn/text-base/simple-ajax-example.cgi.svn-base @ 0:0d795f02a8bb tip
initial committ. what was I thinking?
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 27 Sep 2010 16:57:26 -0400 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/BoosterPack/perltest/.svn/text-base/simple-ajax-example.cgi.svn-base Mon Sep 27 16:57:26 2010 -0400 1.3 @@ -0,0 +1,10 @@ 1.4 +#!C:/strawberry/perl/bin/perl.exe 1.5 +use CGI; 1.6 + 1.7 +$query = new CGI; 1.8 + 1.9 +$secretword = $query->param('w'); 1.10 +$remotehost = $query->remote_host(); 1.11 + 1.12 +print $query->header; 1.13 +print "<p>The secret word is <b>$secretword</b> and your IP is <b>$remotehost</b>.</p>"; 1.14 \ No newline at end of file