Fix a wrong sigil used in a perlre example

In the description of the @^CAPTURE array, an example of demarcated
variable name uses the @ sigil. The $ sigil is probably more correct in
that case and raises less questions when reading this section (although
the @ sigil will give the same result in that case).
This commit is contained in:
Mathias Kende 2023-12-29 13:23:41 +01:00 committed by Karl Williamson
parent 231534d747
commit fabf9dc41c
3 changed files with 3 additions and 1 deletions

View File

@ -574,6 +574,7 @@ Marnix van Ammers <marnix@gmail.com> Marnix (ain't unix!) A. van Ammers <pttesac
Martien Verbruggen <mgjv@comdyn.com.au> <mgjv@tradingpost.com.au>
Martin Hasch <mhasch@cpan.org> Martin Becker <mhasch@cpan.org>
Marty Pauley <marty+p5p@kasei.com> Marty Pauley <marty@martian.org>
Mathias Kende <mathias@cpan.org> Mathias Kende <mathias@kende.fr>
Mats Peterson <mats@sm6sxl.net> <mats@sm6sxl.net>
Mats Peterson <mats@sm6sxl.net> mats@sm5sxl.net <mats@sm5sxl.net>
Matsumoto Yasuhiro <mattn.jp@gmail.com> Yasuhiro Matsumoto <mattn.jp@gmail.com>

View File

@ -931,6 +931,7 @@ Martyn Pearce <martyn@inpharmatica.co.uk>
Marvin Humphrey <marvin@rectangular.com>
Masahiro KAJIURA <masahiro.kajiura@toshiba.co.jp>
Mashrab Kuvatov <kmashrab@uni-bremen.de>
Mathias Kende <mathias@cpan.org>
Mathias Koerber <mathias@dnssec1.singnet.com.sg>
Mathieu Arnold <m@absolight.fr>
Mats Peterson <mats@sm6sxl.net>

View File

@ -1308,7 +1308,7 @@ C<@captured> array.
Be aware that when interpolating a subscript of the C<@{^CAPTURE}>
array you must use demarcated curly brace notation:
print "@{^CAPTURE[0]}";
print "${^CAPTURE[0]}";
See L<perldata/"Demarcated variable names using braces"> for more on
this notation.