DigitalKitty has asked for the wisdom of the Perl Monks concerning the following question:
#!c:\perl\bin\perl.exe -wT use strict; use CGI qw(:standard); my $line; my %survey; print header; open( FH, ">>psy.txt") or die "Error : $!\n"; foreach my $key( param() ) { print FH param($key), "\n"; } close FH; open( FH, "<psy.txt" ) or die "Error : $!\n"; while( $line = <FH> ) { $survey{$line}++; } foreach my $key ( keys %survey ) { print table(Tr(td( { -width => "$survey{$key}", -height => "30", -bgcolor => "red" } ) ) ), br; } close FH;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Writing an opinion poll in perl.
by cchampion (Curate) on Sep 20, 2003 at 10:49 UTC | |
Re: Writing an opinion poll in perl.
by benn (Vicar) on Sep 20, 2003 at 10:24 UTC | |
Re: Writing an opinion poll in perl.
by Jaap (Curate) on Sep 20, 2003 at 09:38 UTC | |
by DigitalKitty (Parson) on Sep 20, 2003 at 09:58 UTC | |
by PodMaster (Abbot) on Sep 20, 2003 at 10:50 UTC | |
by dda (Friar) on Sep 20, 2003 at 10:07 UTC | |
by mosesuru (Initiate) on May 10, 2005 at 16:38 UTC |