Re: parsing string output that isn't CSV, but similar; what module would parse these kind of key-value pairs?

2014-12-16 Thread Brandon McCaig
On Tue, Dec 16, 2014 at 4:29 PM, Kenneth Wolcott wrote: > Well, I had to look at > http://perldoc.perl.org/perlrequick.html#Extracting-matches to find > out how much I had forgotten about extracting matches from a regex :-) > > This might be inefficient, but it seems to work: > > $shared_folder =~

Re: parsing string output that isn't CSV, but similar; what module would parse these kind of key-value pairs?

2014-12-16 Thread Kenneth Wolcott
On Tue, Dec 16, 2014 at 12:18 PM, Tiago Hori wrote: > Have you tried Text::CSV_XS? It allows you to set both the separatist and eol > and it also lets you use complex separators. > > T. > > Sent from my iPhone > >> On Dec 16, 2014, at 4:05 PM, Kenneth Wolcott >> wrote: >> >> Hi; >> >> I've got

Re: parsing string output that isn't CSV, but similar; what module would parse these kind of key-value pairs?

2014-12-16 Thread Tiago Hori
Have you tried Text::CSV_XS? It allows you to set both the separatist and eol and it also lets you use complex separators. T. Sent from my iPhone > On Dec 16, 2014, at 4:05 PM, Kenneth Wolcott wrote: > > Hi; > > I've got some strings that I need to parse the value(s) off of the key. > > T

parsing string output that isn't CSV, but similar; what module would parse these kind of key-value pairs?

2014-12-16 Thread Kenneth Wolcott
Hi; I've got some strings that I need to parse the value(s) off of the key. The key is (possibly) space-separated and terminate by a colon, and the value is delimited by single quotes. But there are (potentially) additional values for the key. Here is one real-world example (excerpt from th