print() returns the number of characters printed, which in your case is whatever s/// returns. Those are the numbers you're seeing.
Change the last line to:
and it should work.s/[\P{InRussian}]//g;
In reply to Re: problem with user-defined unicode character properties
by PreferredUserName
in thread problem with user-defined unicode character properties
by psychomachine
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |