Unfortunately, that doesn't solve the problem, although it may bring us a step closer to the solution.
Without the trailing spaces, I've discovered that the last character pattern in the subroutine does get executed as necessary. For instance:
gets me only numbers and punctuation, whereas having the +utf8::Cyrillic after +utf8::Punctuation in the subroutine produces the same output as the direct application of the InCyrillic pattern print s/[\P{InCyrillic}]//g;#! usr/local/perl use utf8; sub InRussian{ return <<'END'; +utf8::Cyrillic +utf8::Punctuation END } print s/[\P{InRussian}]//g;
Does this make any sense?
In reply to Re^2: problem with user-defined unicode character properties
by psychomachine
in thread problem with user-defined unicode character properties
by psychomachine
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |