A
Aqua
I have a simple script
=====
use charnames ':full';
$ReNum = qr/(\\d+[A-Z]?)/i;
$ReNumRng = qr/$ReNum[\N{EN DASH}]$ReNum/;
$Line = "foo";
$Line =~ /$ReNumRng/;
=====
This works in perl 5.8 and I am getting a big error in 5.10.
Constant(\N{EN DASH}) unknown: (possibly a missing "use
charnames ...") in regex
; marked by <-- HERE in m/(?i-xsm\\d+[A-Z]?))[\N{EN DASH} <-- HERE ]
(?i-xsm\
\d+[A-Z]?))/ at C:\projects\test.pl line 4.
Appreciate any help in resolving this.
Regards
Dominic
=====
use charnames ':full';
$ReNum = qr/(\\d+[A-Z]?)/i;
$ReNumRng = qr/$ReNum[\N{EN DASH}]$ReNum/;
$Line = "foo";
$Line =~ /$ReNumRng/;
=====
This works in perl 5.8 and I am getting a big error in 5.10.
Constant(\N{EN DASH}) unknown: (possibly a missing "use
charnames ...") in regex
; marked by <-- HERE in m/(?i-xsm\\d+[A-Z]?))[\N{EN DASH} <-- HERE ]
(?i-xsm\
\d+[A-Z]?))/ at C:\projects\test.pl line 4.
Appreciate any help in resolving this.
Regards
Dominic