I'm using parse_line
from Text::ParseWords to parse a line of text. However, when there is an unescaped double quote ("
) inside a pair of double quotes, parse_line
fails.
For example:
use Text::ParseWords;
...
my $line = q(1000,"test","Hello"StackOverFlow");
...
@arr = &parse_line(",",1,$line);
I don't want to escape the inner double quote (e.g. "Hello \"StackOverFlow"
).
Is there any other way to parse the line?