1PPIx::Regexp::StructureU:s:eMraiCno(n3t)ributed Perl DocPuPmIexn:t:aRteigoenxp::Structure::Main(3)
2
3
4
6 PPIx::Regexp::Structure::Main - Represent a regular expression proper,
7 or a substitution
8
10 use PPIx::Regexp::Dumper;
11 PPIx::Regexp::Dumper->new( 'qr{foo}smx' )
12 ->print();
13
15 "PPIx::Regexp::Structure::Main" is a PPIx::Regexp::Structure.
16
17 "PPIx::Regexp::Structure::Main" is the parent of
18 PPIx::Regexp::Structure::Regexp and
19 PPIx::Regexp::Structure::Replacement.
20
22 This abstract class represents one of the top-level structures in the
23 expression. Both PPIx::Regexp::Structure::Regexp and
24 PPIx::Regexp::Structure::Replacement are derived from it.
25
27 This class provides the following public methods. Methods not
28 documented here are private, and unsupported in the sense that the
29 author reserves the right to change or remove them without notice.
30
31 delimiters
32 This method returns a string representing the delimiters of a regular
33 expression or substitution string. In the case of something like
34 "s/foo/bar/", it will return '//' for both the regular expression and
35 the replacement.
36
37 interpolates
38 This method returns true if the regular expression or replacement
39 interpolates, and false otherwise. All it really does is to check
40 whether the ending delimiter is a single quote.
41
43 Support is by the author. Please file bug reports at
44 <https://rt.cpan.org>, or in electronic mail to the author.
45
47 Thomas R. Wyant, III wyant at cpan dot org
48
50 Copyright (C) 2009-2020 by Thomas R. Wyant, III
51
52 This program is free software; you can redistribute it and/or modify it
53 under the same terms as Perl 5.10.0. For more details, see the full
54 text of the licenses in the directory LICENSES.
55
56 This program is distributed in the hope that it will be useful, but
57 without any warranty; without even the implied warranty of
58 merchantability or fitness for a particular purpose.
59
60
61
62perl v5.30.1 2020-02-10 PPIx::Regexp::Structure::Main(3)