# New Ticket Created by  Moritz Lenz 
# Please include the string:  [perl #66596]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66596 >


Hi,

multi to-json(Str $d) {
    $d.trans(['"'] => ['\"']).subst(/<-[\c0..\c127]>/, { "a" }, :g)
}

say to-json("möp");


results in

Lexical '$/' not found
in sub to-json (f.t:2)
called from Main (f.t:5)


with a non-multi sub that error doesn't occur.

Cheers,
Moritz

Reply via email to