6 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
foreach my $ele (@documentlist){
my $file = ${$ele->name()}.'.html';
open(my $fh,'>',$file) or die $!;+
my $string = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"><html><head><title>'.$file.'</title></head><body>'.
'<h[3] align=center>'.${$ele->name()}.'</h[3]><br/><br/><br/> <table border="3">';
# PROBLEM
foreach my $ele2 (%{$ele->spalteninfo()}){
}
$string .= '</table></body></html>';
print $fh $string;
close $fh or die $!;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
foreach my $ele (@documentlist){
my $file = ${$ele->name()}.'.html';
open(my $fh,'>',$file) or die $!;+
print $fh '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"><html><head><title>'.$file.'</title></head><body>'.
'<h[3] align=center>'.${$ele->name()}.'</h[3]><br/><br/><br/> <table border="3">';
# PROBLEM
my %hash = %{$ele->spalteninfo()};
my @sorted = sort keys %hash;
for my $key(@sorted){
print $fh '<th>'.$key.'</th>';
}
for my $key(@sorted){
print $fh '<td>'.$hash{$key}.'</td>';
}
print $fh'</table></body></html>';
close $fh or die $!;
}
print %hash
6 Einträge, 1 Seite |