Tag: key-value pairs
-
This is not the nastiest perl I’ve ever done…but dang.
This is a stanza where, given a comma separated list of keywords to match on, find the values after the colon. The values could be empty and at the end of a line. I would be delighted to find an even simpler way to do this. my $matcher = ” (“.join(‘|’, keys %option_map).”):”; my @matches =…
