in reply to extracting the key value pairs from a string

my $s = ' ABC: 123 xyz: 100 def: YYY aaa: ZZZ';; my %hash = $s =~ m[(\S+)\s*:\s*(\S+)]g;; print %hash;; ABC 123 def YYY aaa ZZZ xyz 100

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."