in reply to Perl6 regex substitutions

»»» This post is about the immature Perl 6, not the rock solid Perl 5 «««

Perl 6:

my $x = "this is a test"; $x ~~ s:g/\s/-/;

Notes:

If you want any further help regarding Perl 6, I strongly recommend a visit to the IRC channel #perl6 on freenode, but I'all also check in here to see if you post a follow up.

Hth.