IlyaM has asked for the wisdom of the Perl Monks concerning the following question:
Can anybody please explain me why these two one liners omit different result?
I checked docs (i.e. perlunicode, perlre and utf8) but I didn't notice anything which would explain such behavior.ilya@juil:~$ perl -e 'print "b" =~ /[A-C]/i ? "true\n" : "false\n"' true ilya@juil:~$ perl -Mutf8 -e 'print "b" =~ /[A-C]/i ? "true\n" : "false +\n"' false
Knowing that unicode support in Perl is very new and changes with each new release I guess it is worth to mention that I still use 5.6.1.
--
Ilya Martynov, ilya@iponweb.net
CTO IPonWEB (UK) Ltd
Quality Perl Programming and Unix Support
UK managed @ offshore prices - http://www.iponweb.net
Personal website - http://martynov.org
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Ranges in case insensitive regexps in unicode mode
by broquaint (Abbot) on Jun 06, 2003 at 14:08 UTC | |
Re: Ranges in case insensitive regexps in unicode mode
by jmcnamara (Monsignor) on Jun 06, 2003 at 14:10 UTC | |
Re: Ranges in case insensitive regexps in unicode mode
by december (Pilgrim) on Jun 06, 2003 at 22:55 UTC |
Back to
Seekers of Perl Wisdom