in reply to regex to break on commas

foreach my $k (keys %hash){ $hash{$k} =~ s/,(?! )/, /g; }
Update: $hash{$_} =~ s/,(?! )/, /g for keys %hash;
Update: Taking it even one more step is tedpride's nice solution below, avoiding keys altogether.