in reply to Re: Update to smartmatch
in thread Update to smartmatch

Just join the regexes into one large regex. Use | to separate them, and use branch reset (?|...) to start counting the capture groups from 1 in each alternative.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,