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

The source is in perl's universal.c, but the update tie methods don't do anything; the read tie methods call named_buff or named_buff_iter to get the data from the regex engine. So no patching possible.
  • Comment on Re^2: better way to get last named capture group

Replies are listed 'Best First'.
Re^3: better way to get last named capture group
by LanX (Saint) on Jul 04, 2025 at 10:53 UTC
    Yeah, the tie is basically only a frontend to the regex engine.

    One side effect is that you can tie other %hashes to act like %+ and %-

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery