in reply to Re: better way to get last named capture group
in thread better way to get last named capture group

It's in universal.c.

It would be possible to modify Perl to provide something like

tied( %+ )->latest_capture_name