This is probably a no-brainer, but it is something I'm not seeing. I had posted a question on PM, and got a solution (Thanks, Monks!). It works fine on Windows, but when I try running it on a Mac, it errors out.
$stripped = $select =~ s/ ( ' .*? ' ) /'_' x length $1/egrx;
Bareword found where operator expected at x.pl line 942, near "s/ /'_' x length $1/egrx"
syntax error at x.pl line 942, near "s/ /'_' x length $1/egrx"
On the left side of the regex, I want to look for single quotes. The single quotes on the right side is for the repeat operator (right?). I've tried escaping them to no avail (though I think doing that means something else in the regex entirely).
Why is this malformed only on a Mac?