should beX{1234}
\x{1234} # \x{...}, not \X{...} or X{...}
should be/\X{1F00-1FE3}/
/[\x{1F00}-\x{1FE3}]/
is just plain wrong.utf8::encode($_[0]);
So you end up with:
sub is_vowel { return $_[0] =~ / ^ [\x{1F00}-\x{1FE3}\x{1FE6}-\x{1FFE}\x{0386}-\x{038F}\x{0390}\x +{0391}\x{0395}\x{0397}\x{0399}\x{039F}\x{03A5}\x{03A9}\x{03AA}-\x{03B +1}\x{03B5}\x{03B7}\x{03B9}\x{03BF}\x{03C5}\x{03C9}-\x{03CE}] \z /x; }
There might be a better way of doing this, but i don't have time to research this right now.
In reply to Re: Comparing Unicode Greek Characters/Code Points
by ikegami
in thread Comparing Unicode Greek Characters/Code Points
by plwtoday
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |