>If I intend to write something like >s/([ab])c/$1c/; >but accidentally omit the parentheses and write >s/[ab]c/$1c/; >I get a run time error message -- assuming >the pattern matches the input data. >But if the test data does not expose >this bug I might not find out about it until later. > >Is there any way to get a "compile time" check?
That's not possible in general, because there could legitimately be a $1 left over from a previous regex match. _______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

