http://www.perlmonks.org?node_id=996458


in reply to Re^4: split on the pattern of '),('
in thread split on the pattern of '),('

For the input I gave, the code you gave produced:

GOT: (1,"(text GOT: text)", 123 GOT: 2,"(string)", 234 GOT: ...)

But surely, it should produce:

GOT: 1,"(text),(text)", 123 GOT: 2,"(string)", 234 GOT: ...