Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Can I change \s?

by JavaFan (Canon)
on Oct 28, 2011 at 21:27 UTC ( [id://934519]=note: print w/replies, xml ) Need Help??


in reply to Can I change \s?

It might be easier to upgrade your perl to 5.14:
$ perl-5.14.2 -wE 'say "\xA0" =~ /\s/' 1 $ perl-5.14.2 -wle 'print "\xA0" =~ /\s/u' 1 $ perl-5.12.2 -wE 'say "\xA0" =~ /\s/' $
Alternatively, upgrade your string to UTF-8:
$ perl -wle '$_ = chr 0xA0; utf8::upgrade($_); print /\s/' 1 $

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://934519]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-26 07:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found