# Load the keywords used my ($terms, @terms); if ($s->{terms}) { @terms = @{$s->{terms}}; for (@terms) { $terms .= "$_ " } chomp($terms); # for some reason chomp wasn't working here } #### # Load the keywords used my $terms; if ($s->{terms}) { $terms = join ' ', @{$s->{terms}}; }