in reply to Re^3: Problem with regexp or saved match variable.
in thread Problem with regexp or saved match variable.
Thanks everyone for all the help. I followed the bug report ig submitted and see that the solution may be to update/clarify the documentation. My final solution was to put an empty continue at the end of the loop to make sure the match variables were reset and then added a test within the conditional loop to see if the match variable was initialized. Pretty much what everyone suggested. I put a comment at the empty continue explaining why it was there and included the bug report number. All in all, this just re-enforces the value of good test cases (at least to me)! One odd (but valid) record out of a thousand. Thanks again.
|
|---|