in reply to Can I change the definition of '\s'?
It can't be done (as far as I know) without hacking the Perl source.
You can, however, create a character class that contains both \s and your "extra" character - [\s\0xA0]. You can even create a variable that contains your character class and use that in your regexes.
--my $ws = '[\s\0xA0]'; # white space $data =~ s/^$ws+|$ws+$//g;
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|