DB<22> sub func { my %matches = @_; say Dumper \%matches} DB<23> 'ABC' =~ /(?\w)(?\w)(?\w)/; func(%+) $VAR1 = { 'a' => 'A', 'b' => 'B', 'c' => 'C' };