On Tue, May 19, 2009 at 09:55, Alexander Koenig <alexander.koe...@mpi.nl> wrote:
snip
> ($a,$n,$x,$y)) = $item =~ /(.{5})\.(\d\d?)[-+](\d{1,4})\.(\d{1,4})/;
snip

As of Perl 5.8 \d no longer matches [0-9].  It now matches any UNICODE
character that has the digit property.  This includes characters such
as "\x{1815}" (MONGOLIAN DIGIT FIVE).  You must use [0-9] if you mean
[0-9] or use the bytes pragma[1] to return the old meaning of \d (but
this breaks all UNICODE processing in the scope you declare it).

1. http://perldoc.perl.org/bytes.html

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to