"245$a": [ { "op": "regsub", "from": "foo", "to": "bar", "flags": "g" } ]
This seems like a good starting point. See neilwatson's article How to ask better questions using Test::More and sample data for the way forward. Once you have a few working test cases defined, the only thing left is to define about a million more, including generous edge and corner cases and exception cases! No problem. :)
Give a man a fish: <%-{-{-{-<
In reply to Re^3: Regexp substitution using variables
by AnomalousMonk
in thread Regexp substitution using variables
by MikeTaylor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |