CGI.pm HTML functions

Grant McLean Grantm at web.co.nz
Thu Dec 5 16:54:50 CST 2002


Despite my disparaging remarks yesterday about the general
uselessness of CGI.pm's functions for generating HTML,
here's a tight little script from Randall Schwarz for 
generating Bullsh*t Bingo cards in HTML...

=========================================================
#!/usr/bin/perl 
 
use CGI qw(:all); 
 
my @array = 
  ("Synergy", "Strategic fit", "Core competencies", "Out of the box", 
   "Bottom line", "Revisit", "Take that off line", "24/7", "Out of the loop", 
   "Benchmark", "Value-added", "Proactive", "Win-win", "Think out side the box", 
   "Fast track", "Result driven", "Empower (ment)", "Knowledge base", "At the end of the day", 
   "Touch base", "Mindset", "Client focus (ed)", "Ballpark", "Game plan",  
   "Leverage", "Top down", "User friendly", "On time", "Within budget", "Forecast", 
   "Optimistic"); 
 
print header, start_html; 
print table({ border => 2, cellspacing => 0, cellpadding => 10 }, 
            map { 
              Tr( 
                 map { 
                   td( { align => 'center' }, 
                       splice @array, rand scalar @array, 1 
                     ) 
                 } 1..5 
                ) 
            } 1..5 
           ); 
print end_html;
=========================================================

See this thread on PerlMonks:

  http://perlmonks.org/index.pl?node_id=217791

Regards
Grant

===============================================================
Grant McLean        BearingPoint Inc - formerly The Web Limited
+64 4 495 9026           Level 6, 20 Customhouse Quay, Box 1195
gmclean at bearingpoint.biz                Wellington, New Zealand






More information about the Wellington-pm mailing list