in reply to problem with user-defined unicode character properties

The "-p" switch already implies printing the line, so you don't need to do it explicitly.

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:

s/[\P{InRussian}]//g;
and it should work.