1PPIx::Regexp::StructureU:s:eCrapCtounrter(i3b)uted PerlPDPoIcxu:m:eRnetgaetxipo:n:Structure::Capture(3)
2
3
4
6 PPIx::Regexp::Structure::Capture - Represent capture parentheses.
7
9 use PPIx::Regexp::Dumper;
10 PPIx::Regexp::Dumper->new( 'qr{(foo)}smx' )
11 ->print();
12
14 "PPIx::Regexp::Structure::Capture" is a PPIx::Regexp::Structure.
15
16 "PPIx::Regexp::Structure::Capture" is the parent of
17 PPIx::Regexp::Structure::NamedCapture.
18
20 This class represents capture parentheses.
21
23 This class provides the following public methods. Methods not
24 documented here are private, and unsupported in the sense that the
25 author reserves the right to change or remove them without notice.
26
27 name
28 my $name = $element->name();
29
30 This method returns the name of the capture buffer. Unless the buffer
31 is actually named, this will be "undef".
32
33 number
34 my $number = $element->number()
35
36 This method returns the number of the capture buffer. Note that named
37 buffers have numbers also.
38
40 Support is by the author. Please file bug reports at
41 <https://rt.cpan.org>, or in electronic mail to the author.
42
44 Thomas R. Wyant, III wyant at cpan dot org
45
47 Copyright (C) 2009-2020 by Thomas R. Wyant, III
48
49 This program is free software; you can redistribute it and/or modify it
50 under the same terms as Perl 5.10.0. For more details, see the full
51 text of the licenses in the directory LICENSES.
52
53 This program is distributed in the hope that it will be useful, but
54 without any warranty; without even the implied warranty of
55 merchantability or fitness for a particular purpose.
56
57
58
59perl v5.30.1 2020-02-10PPIx::Regexp::Structure::Capture(3)