in reply to Re: lost in eval and regexp
in thread lost in eval and regexp

Let's hope your variables don't contain "~~"! Use s///eg instead of this double-substitution while loop.