Skeeve has asked for the wisdom of the Perl Monks concerning the following question:
prints$ascii="\xa0\xa0"; # correction thanks to idsfa $unicode="\x{2022}\xa0"; print "ascii: ", $ascii=~ /\s/ ? "yes":"no","\n"; print "unicode: ",$unicode=~/\s/ ? "yes":"no","\n";
I would expect it to be either both times yes or both times no.ascii: no unicode: yes
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: inconsistency in whitespace handling
by idsfa (Vicar) on May 12, 2005 at 14:17 UTC | |
|
Re: inconsistency in whitespace handling
by bart (Canon) on May 12, 2005 at 14:23 UTC | |
by idsfa (Vicar) on May 12, 2005 at 14:40 UTC | |
|
Re: inconsistency in whitespace handling
by thundergnat (Deacon) on May 12, 2005 at 14:37 UTC | |
by Fletch (Bishop) on May 12, 2005 at 14:45 UTC | |
by demerphq (Chancellor) on May 13, 2005 at 11:18 UTC | |
|
Re: inconsistency in whitespace handling
by Fletch (Bishop) on May 12, 2005 at 14:13 UTC | |
by bart (Canon) on May 12, 2005 at 14:25 UTC | |
by Fletch (Bishop) on May 12, 2005 at 14:41 UTC |