A little work on
Text::xSV in the _get_row() and _get_quoted() subroutines plus another parameter that specifies the quoting mechanism should get you what you want.
The only thing you didn't say is what happens if the curlies occur within a curlied section.
My criteria for good software:
- Does it work?
- Can someone else come in, make a change, and be reasonably certain no bugs were introduced?