in reply to Loosing variable content after regular expression

It has to be an issue with "what the reference actually refers to," because it is known that the =~ operator does not change anything. A subtle bug in your code, to be sure, but a bug in your code, which might not be in the snippet that you included here.
  • Comment on Re: Loosing variable content after regular expression