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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -