Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
On second thought this could maybe be more of a linux question though, I tried running the script encoded as latin-1 on both my ubuntu and windows PC and it ran fine on windows but not linux. So where would I go to resolve it?use warnings; use strict; use locale; if ("ö" =~ /\w/) { print "^_^\n"; } else { print "T_T;\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Matching non-ascii chars with \w in regexps
by shmem (Chancellor) on Jul 21, 2006 at 09:13 UTC |