Please shows us the output of Devel::Peek::Dump() before and after the substitution.
See https://perldoc.perl.org/utf8 for more on the two flavors of strings in Perl, octet strings and character strings.
Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Substituting unicode character leaves special block
by LanX
in thread Substituting unicode character leaves special block
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |