in reply to Re: Scope of RegEx vars like $_
in thread Scope of RegEx vars like $_

Well actually, not quite, I'm still getting the same error.

I've given up and used a local named variable, $loc_diagnoses_text, since you ask. And this works perfectly. Not sure why the other one didn't work, but I'm happy with this solution.

Steve