in reply to Re: Regex Search String in a Variable
in thread Regex Search String in a Variable

Thanks Discipulus. I now see the reason my qr didn't work. It was because I first assigned the search string to the variable, then reassigned the variable (run through qr) to itself, which did not double the backslashes.

my $search = "x2\\.+\\x4"; $search = qr($search);

"It's not how hard you work, it's how much you get done."