|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: match utf8by tobyink (Prior) |
| on Nov 12, 2012 at 13:54 UTC ( #1003447=note: print w/ replies, xml ) | Need Help?? |
|
Unless you're using an ancient version of Perl, \w should match any Unicode word character. According to perlre there are over 100,000 characters it matches.
Make sure your strings are being interpreted as character strings rather than byte strings though. (See perlunicode and utf8.)
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||