You need to use double quotes to interpolate the character in $cgj:
my $cgj = "\N{COMBINING GRAPHEME JOINER}"; my $cgj_re = qr/$cgj/xms;
or just include it directly in the cached regex.
my $cgj_re = qr/\N{COMBINING GRAPHEME JOINER}/xms;
In reply to Re: stuck with a \N{CHAR NAME} problem
by wind
in thread stuck with a \N{CHAR NAME} problem
by amir_e_a
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |