Unicode property "Space" in Perl 5 and Perl 6 -


is unicode-property \p{space} perl5 extension?

in perl5 space matches white-spaces

my $s = "one\ttwo\nthree"; $s =~ s/\p{space}/*/g; $s;  # one*two*three 

while in per6 maybe matches simple space

my $s = "one\ttwo\nthree"; $s.=subst( /<:space>/, '*', :g ); $s;  # 1     2 # 3 

it's not extension, it's shorthand name unicode property, \p{white_space}. documented in detail in manpage perluniprops.

i have no idea perl6 people doing here.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -