John Williams writes:
> Is all the "Extensible metasyntax (<...>)" being changed to «...» ?
>
> Or is the new rule that <...> is capturing metasyntax, and «...» is
> non-capturing metasyntax?
That's the one.
> You can't really capture anything on an assertion, so
> /^foo .* <( do { say "Got here!" } or 1 )> .* bar$/
> is probably not an issue at all.
>
> How are the results different between these?
>
> /<ident>/
Puts <ident>'s match object in $<ident> (of the current match object).
> /(<ident>)/
Puts <ident>'s match object in $<ident> and its text in $1.
> /(«ident»)/
Puts the text captured by «ident» into $1.
Luke
Thread Previous
|
Thread Next