view index.pl @ 0:477258d09353 boosterpack

[svn r1] initial import
author robert
date Sun, 30 Aug 2009 02:19:26 -0400
parents
children d7dd496a4fa6
line wrap: on
line source
1 #!C:/strawberry/perl/bin/perl.exe
4 use CGI::Ajax;
5 use CGI;
7 my $q = new CGI;
10 my %hash = ( 'perl_script' => \&work, 'num2' => \&funtwo);
17 my $pjx = CGI::Ajax->new(%hash);
18 $pjx->JSDEBUG(1);
19 $pjx->DEBUG(1);
20 print $pjx->build_html($q,\&gen); # this outputs the html for the page
27 sub funtwo
28 {
29 return 14;
30 };
34 sub work
35 {
36 return 13;
37 };
41 sub gen
42 {
43 open FILE, "<index.html";
44 return do { local $/; <FILE> };
45 };