| »»» 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.
»ö« . o O ( "the celebrity tell-all of the Perl-6 cult?" )
In reply to Re: Perl6 regex substitutions
by raiph
in thread Perl6 regex substitutions
by kovacsbv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |