in reply to Weird quoting with /x modifier

I get the same results with perl 5.10.0. In perl 5.8.8, the results are different:
$b matches $test $a = (?x-ism:Hello\#\ World\\E ) $b = (?x-ism:Hello\#\ World )
Seems like a bug to me. What is the code's behaviour in 5.12?

Replies are listed 'Best First'.
Re^2: Weird quoting with /x modifier
by ykar (Acolyte) on May 29, 2010 at 22:34 UTC

    If nobody explained such behavior yet, maybe it turns out to be a bug.

    Despite different representation of compiled regular expression in 5.8.8 (the only difference is newline), the problem is the same: \E is quoted instead of been interpreted as closing end of \Q.

    Thank you for your answer!