114 |
foreach my $col ( sort grep { /^[A-Z]/ } keys %$hash ) { |
foreach my $col ( sort grep { /^[A-Z]/ } keys %$hash ) { |
115 |
# FIXME internal WebPAC encoding is ISO-8859-2 |
# FIXME internal WebPAC encoding is ISO-8859-2 |
116 |
my $val = decode('ISO-8859-2', $hash->{$col}); |
my $val = decode('ISO-8859-2', $hash->{$col}); |
117 |
|
# protect data which looks like forula |
118 |
|
$val = "'$val" if $val =~ m/^=/; |
119 |
$log->debug("$col$l|$val"); |
$log->debug("$col$l|$val"); |
120 |
$worksheet->write( $col . $l , $val ); |
$worksheet->write( $col . $l , $val ); |
121 |
$cols++; |
$cols++; |