in reply to regex to break on commas
foreach my $k (keys %hash){ $hash{$k} =~ s/,(?! )/, /g; } [download]