Mercurial > boosterpack
view cards.pl @ 0:477258d09353 boosterpack
[svn r1] initial import
author | robert |
---|---|
date | Sun, 30 Aug 2009 02:19:26 -0400 |
parents | |
children | c702488ef795 |
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 = ( 'card_list' => \&work, 'current_card' => \&funtwo);15 my $pjx = CGI::Ajax->new(%hash);16 $pjx->JSDEBUG(1);17 $pjx->DEBUG(1);18 print $pjx->build_html($q,\&gen); # this outputs the html for the page24 sub funtwo25 {26 return 14;27 };31 sub work32 {33 return 13;34 };51 sub gen52 {53 open FILE, "<cards.html";54 return do { local $/; <FILE> };55 };