Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Listing out the characters included in a character class

by ikegami (Patriarch)
on Nov 01, 2023 at 08:00 UTC ( [id://11155309] : note . print w/replies, xml ) Need Help??


in reply to Re: Listing out the characters included in a character class
in thread Listing out the characters included in a character class

Your subs are expected to return a string.

For example, the second test passes with the following definition for IsThaiMCons:

sub IsThaiMCons { return <<'.'; 0E01 0E08 0E0E 0E0F 0E14 0E15 0E1A 0E1B 0E2D . }

Replies are listed 'Best First'.
Re^3: Listing out the characters included in a character class
by Polyglot (Chaplain) on Nov 01, 2023 at 10:00 UTC
    I appreciate the link. I read that just a few days back while working on this, but I feel I have more fully grasped it this time. It appears to indicate that each codepoint, or range, should terminate with a newline character--something that my present code is not doing and which your revision does.

    However, when I replaced my code with yours, it effected no change--the second test still fails. Is this mysterious? or can it be rationally explained?

    As I said, I seem rather "gifted"....

    Blessings,

    ~Polyglot~