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.
In reply to Re: Trying to build a hash from a string...
by ww
in thread Trying to build a hash from a string...
by calebcall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |