On Wed, Oct 15, 2014 at 7:24 AM, Marco Moreno <mmoreno@pobox.com> wrote: > Ugh, I meant to say that this returns false instead of true: > > perl -e 'print “foo" =~ /[\Qa-z\E]/ ? "true" : "false”' Deparse confirms that it quotes the hyphen: $ perl -MO=Deparse -e 'print "foo" =~ /[\Qa-z\E]/ ? "true" : "false"' print 'foo' =~ /[a\-z]/ ? 'true' : 'false'; -e syntax OK $ ... and yes, this seems to contradict the documentation's "not usable within a bracketed character class". EirikThread Previous | Thread Next