How would you go about storing a regex matched portion of a string into a variable? i.e. something like my $pls-respond = "1 modify"; my $response-regex = /\d+ " " \w+/; my $parsd = $pls-respond ~~ $response-regex;