This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
new feature @{^CAPTURE} (and %{^CAPTURE} and %{^CAPTURE_ALL})
authorYves Orton <demerphq@gmail.com>
Mon, 31 Oct 2016 21:44:31 +0000 (22:44 +0100)
committerYves Orton <demerphq@gmail.com>
Tue, 1 Nov 2016 12:29:48 +0000 (13:29 +0100)
commit27deb0cf05ad74bec9ea0da3d1b6405346a66401
treef40af34d9d18411571c3159c6cc104729969e672
parentb634eb441c2bbbdbcd8dbcbbc4097658c7439a1f
new feature @{^CAPTURE} (and %{^CAPTURE} and %{^CAPTURE_ALL})

@{^CAPTURE} exposes the capture buffers of the last match
as an array. So $1 is ${^CAPTURE}[0].

%{^CAPTURE} is the equivalent to %+ (ie named captures)

%{^CAPTURE_ALL} is the equivalent to %- (ie all named captures).
gv.c
mg.c
pod/perlguts.pod
pod/perlvar.pod
sv.c
t/re/pat.t