in reply to Re^2: Are we seeing syntax inconsistency?
in thread Are we seeing syntax inconsistency?

Right, I gave that as an example to clarify what's going on, not a recommendation. Though I think it can be made to work in the general case with judicious use of quotes and quotemeta. :)

Replies are listed 'Best First'.
Re^4: Are we seeing syntax inconsistency?
by Aristotle (Chancellor) on Nov 11, 2005 at 18:29 UTC

    You mean something like eval qq{ sub { print "\Q$_\E" } }? Not what I think of as a pretty solution, since you’re firing up the compiler (and repeatedly) at runtime, but yeah, that would do it.

    Makeshifts last the longest.

      It may not be pretty, but I personally believe that, on a deeper level, the Perl interpreter enjoys this approach more. :-)