in reply to Re^2: How does the built-in function length work?
in thread How does the built-in function length work?
By syntax error, do you mean the following?
Constant(\N{LATIN CAPITAL LETTER E WITH ACUTE}ric) unknown: (possibly +a missing "use charnames ...") at - line 1, within string Execution of - aborted due to compilation errors.
If so, like the message says, it's because you need to add use charnames ':full';. If not, could you be more specific? Maybe your version of Perl predates \N{}?
PS — charnames will be loaded automatically when needed in 5.16.
|
|---|