for my $t (@$arr) {
$data->{$class}->{$type} .= ' : ' if ($data->{$class}->{$type} =~ /\w\s*$/o);
$data->{$class}->{$type} .= " $t";
for my $t (@$arr) {
$data->{$class}->{$type} .= ' : ' if ($data->{$class}->{$type} =~ /\w\s*$/o);
$data->{$class}->{$type} .= " $t";