9 $th .= qq|<th>| . shift(@_) . qq|</td>| foreach ( 1 .. $cols );
10 $th .= qq|</tr>\n<tr>|;
13 my @td = map { "<td>$_</td>" } @_;
14 my $html = qq{<table>\n<tr>$th};
15 foreach ( 0 .. $#td ) {
17 $html .= qq{</tr>\n<tr>} if ( $_ + 1 ) % $cols == 0;
19 $html .= qq{</tr>\n</table>};
24 my $html = qq{<table border=1>\n<tr>};
25 foreach my $row ( @_ ) {
26 $row =~ s{\t}{</td><td>}g;
27 $html .= qq|<tr><td>$row</td><tr>\n|;
29 $html .= qq|</table>|;
35 qq|<tt>| . join(' ', @_) . qq|</tt>|;
40 my $selected_option = shift;
42 , qq|<select type=select name=$name>|
43 , join("\n", map { my $selected = $_ eq $selected_option ? 'selected' : ''; qq|<option name=$_ $selected>$_</option>| } @_ )