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"; }
In reply to Matching non-ascii chars with \w in regexps by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |