amir_e_a has asked for the wisdom of the Perl Monks concerning the following question:
I am running this code on 5.14:
use 5.014; use charnames ':full'; my $cgj = '\N{COMBINING GRAPHEME JOINER}'; say $cgj; my $cgj_re = qr/$cgj/xms;
And i get the error: "\N{NAME} must be resolved by the lexer in regex; marked by <-- HERE in m/\N{COMBINING GRAPHEME JOINER <-- HERE }/ at lexer.pl line 6."
Does anyone have any idea how to make it work?
(A bit of background: The code above is a minimal problem. In my actual program i read a string from a file and turn it into a regex.)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: stuck with a \N{CHAR NAME} problem
by wind (Priest) on May 26, 2011 at 15:13 UTC | |
Re: stuck with a \N{CHAR NAME} problem
by mje (Curate) on May 26, 2011 at 14:24 UTC | |
Re: stuck with a \N{CHAR NAME} problem
by ikegami (Patriarch) on May 26, 2011 at 16:02 UTC | |
by tchrist (Pilgrim) on May 26, 2011 at 17:52 UTC | |
by ikegami (Patriarch) on May 26, 2011 at 18:28 UTC | |
Re: stuck with a \N{CHAR NAME} problem
by anonymized user 468275 (Curate) on May 26, 2011 at 14:15 UTC | |
by JavaFan (Canon) on May 26, 2011 at 15:50 UTC | |
by anonymized user 468275 (Curate) on May 27, 2011 at 10:26 UTC |
Back to
Seekers of Perl Wisdom