in reply to Re^2: problem with user-defined unicode character properties
in thread problem with user-defined unicode character properties

Um...two guesses.

  1. You are using negation \P{} and NOT(+A +B) doesn't mean what you intend. Eg. 'not in A and not in B'?

    Maybe you need (something like):

    sub NotInRussian{ return <<'END'; !utf8::Cyrillic !utf8::Punctuation END } ... s/\p{NotInRussian}//g
  2. It might have something to do with this from the POD?
    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?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."