Hi,
> my $commasep ='abc,+';
abc,+
> say 'abc' ~~ / $( $commasep.split(',') ) /;
Nil
> say 'abc' ~~ / $( $commasep.split(',')[0] ) /;
「abc」
> say '123' ~~ / $( $commasep.split(',')[1] ) /;
Nil
> say 'abc' ~~ / $( $commasep.split(',')[0..*] ) /;
Nil
> say 'abc' ~~ / @( $commasep.split(',') )
On Tue, Sep 3, 2019 at 8:37 AM yary wrote:
> I see. And that's discussed here (had to really look for it):
>> https://docs.perl6.org/language/regexes#Quoted_lists_are_LTM_matches
>> At first I was looking further down in the "Regex interpolation"
>> section, where it's also touched on, though I
>
> I see. And that's discussed here (had to really look for it):
> https://docs.perl6.org/language/regexes#Quoted_lists_are_LTM_matches
> At first I was looking further down in the "Regex interpolation"
> section, where it's also touched on, though I kept missing it:
> > When an array variable is