Um...two guesses.
Maybe you need (something like):
sub NotInRussian{ return <<'END'; !utf8::Cyrillic !utf8::Punctuation END } ... s/\p{NotInRussian}//g
A final note on the user-defined property tests and mappings: they will be used only if the scalar has been marked as having Unicode characters. Old byte-style strings will not be affected.
Does your editor produce unicode source files? Will Perl promote ASCII source to unicode?
In reply to Re^3: problem with user-defined unicode character properties
by BrowserUk
in thread problem with user-defined unicode character properties
by psychomachine
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |