in reply to Simultaneous uploads
Here's fragments of something I did along these lines:
This runs under strict, too.for ( 1..$MAXNUM) { my $out_key = radio_group(-name=>"key$_", -value=>\@in_keys, -rows +=>1, -default=>0); $out_key =~ s!<td>!<td>Choose Key:</td><td>!i; $out_key =~ s!</td>!</td>\n!gi; my $out_scale = 'Scale/Chord type: ' . popup_menu(-name=>"scale$_" +, -value=>\@in_scales, -length=>scalar(@in_scales) + 3, -default=>'ma +jor,'); for ($out_key, $out_scale) { s/<TABLE/<TABLE border='1'/i; print; +} } # later # if ( param() ) { # stuff for ( 1..$MAXNUM ) { if ( param("key$_") and param("scale$_") ) { push @cmd, "-s", param("key$_") ."," . param("scale$_" +); } } # other stuff }
This can be seen in action at http://bob-n.com/cgi-bin/chord.pl, downloaded in full at: http://bob-n.com/comp/scripts/index.html
--Bob Niederman, http://bob-n.comAll code given here is UNTESTED unless otherwise stated.
|
|---|