in reply to Trying to build a hash from a string...

The split regex I was trying to use was '":\ ', so my code looked something like this:
%info = split (/(":\ )/, $info);

Looks like a refresher on split (perldoc -f split, for example) is in order along with a review of regex construction: escaping a literal space, "/\ /", makes no sense.

Replies are listed 'Best First'.
Re^2: Trying to build a hash from a string...
by AnomalousMonk (Archbishop) on Nov 09, 2013 at 17:12 UTC
    ... escaping a literal space, "/\ /", makes no sense.

    It's pointless in this case, but it does no harm.

    %info = split (/(":\ )/, $info);

    However, putting the split pattern into a capture group  /(":\ )/ causes the separator sub-strings to be returned along with the stuff one might possibly want, resulting, in this case, in a bunch of extraneous (Update: and confounding)  '": ' thingies in the output list.