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
Post a Comment