Fox has asked for the wisdom of the Perl Monks concerning the following question:
rakudo/perl6 -e 'my $v = "test"; $v ~~ /(\w)/; say $0' # says t
rakudo/perl6 -e 'my $v = "test"; $v ~~ s/(\w)/X/; say $0' # says Any()
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl6: subst with capture brackets
by moritz (Cardinal) on Aug 16, 2010 at 12:41 UTC | |
by Fox (Pilgrim) on Aug 16, 2010 at 12:52 UTC |