fixes syntax error reported on some (older) Perls

This commit is contained in:
Andrew Bauer 2016-06-17 14:12:14 -05:00
parent d0e08b32f5
commit 0fd42abd87
1 changed files with 3 additions and 2 deletions

View File

@ -89,10 +89,11 @@ sub serialize()
my $ident = ${ $_[0] };
my $option_ref = $_[1];
my $attr_str = "";
my %attr_hash = %{$Attribs_of{$ident}};
foreach my $attr (keys %{$Attribs_of{$ident}})
foreach my $attr (keys %attr_hash)
{
my $value = %{$Attribs_of{$ident}}{$attr};
my $value = $attr_hash{$attr};
$attr_str .= " $attr=\"$value\"";
}