in reply to Re^6: Transform ASCII into UniCode (escape_metas)
in thread Transform ASCII into UniCode
Multiple levels of escaping are often kind of brainf*ck.
> would expect the strings coming in to contain the characters to operate on, not strings that Perl can turn into the characters to operate on by evaluating them.
this escape_metas can also be used with a character class [METAS] for with multiple metas.
> The \b is tricky, as I can use it to get three different results from my three subroutines:
exactly, as I said, it depends what the intended behavior is.
FWIW
my intention was to implement a sub tri = "transliterate interpolated" which allowed to write tri($input,$left,$right) and implemented $input =~ tr/LEFT/RIGHT/ while sticking close to tr's behaviour but without breaking.
I'll try again tomorrow. after GPW. :)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Transform ASCII into UniCode (escape_metas)
by LanX (Saint) on Mar 23, 2021 at 23:27 UTC |