Thread Code und mehr
(5 answers)
Opened by pq at 2009-03-22 14:53 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 #!/usr/bin/perl $| = 1; use strict; use warnings; use CGI; my $cgi = new CGI; print $cgi->header; print $cgi->start_html; print $cgi->start_table; while (my $line = <DATA>) { chomp $line; my (undef, $col1, $col2) = split/=/,$line; print $cgi->Tr($cgi->td({-width=>"50%"},[$col1,$col2])); } print $cgi->end_table; print $cgi->end_html; 1; __DATA__ =aaa=11111 =bbb=222 =ccc=77777 __END__ |