Mercurial > boosterpack
view index.pl @ 1:c702488ef795 boosterpack
[svn r3] modified
author | robert |
---|---|
date | Mon, 31 Aug 2009 14:53:15 -0400 |
parents | 477258d09353 |
children | d7dd496a4fa6 |
line wrap: on
line source
1 #!C:/strawberry/perl/bin/perl.exe4 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 page27 sub funtwo28 {29 return 14;30 };34 sub work35 {36 return 13;37 };41 sub gen42 {43 open FILE, "<index.html";44 return do { local $/; <FILE> };45 };