Mercurial > boosterpack
view cards.pl @ 6:4246c7ef6487 boosterpack
[svn r8] bug fix -- holos need to be one int three compared to rares
author | robert |
---|---|
date | Tue, 08 Sep 2009 17:20:52 -0400 |
parents | c702488ef795 |
children | 8c6d2ce90677 |
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' => \&CardList, 'display_card' => \&DisplayCard , 'tags' => \&getAllTags);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 getAllTags25 {26 return 14;27 };31 sub DisplayCard32 {33 return 13;34 };37 sub CardList38 {40 return 15;42 };45 sub gen46 {47 open FILE, "<cards.html";48 return do { local $/; <FILE> };49 };