foreach my $ele (@documentlist){ my $file = ${$ele->name()}.'.html'; open(my $fh,'>',$file) or die $!;+ print $fh ''.$file.''. ''.${$ele->name()}.'


'; # PROBLEM my %hash = %{$ele->spalteninfo()}; my @sorted = sort keys %hash; for my $key(@sorted){ print $fh ''; } for my $key(@sorted){ print $fh ''; } print $fh'
'.$key.''.$hash{$key}.'
'; close $fh or die $!; }