in reply to Re^2: Misreading m// documentation (BUG?)
in thread Misreading m// documentation

Bug in Deparse. Still present.

The regex pattern is

$x # End of line followed by "x"

so the literal should be

m'$x'

It's the only match operator that will produce exactly that regex pattern.