http://qs321.pair.com?node_id=964381


in reply to Re: Common Perl Pitfalls
in thread Common Perl Pitfalls

I actually meant to say that one shouldn't use a scalar as a regex anyway. I meant to say that, even if your correct semantics didn't require the use of \Q and \E (i.e. you actually needed the metacharacters) then you're better off using the qr// operator instead of building your regex as a literal string.