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 |