1PPIx::Regexp::Token::CoUdsee(r3)Contributed Perl DocumenPtPaItxi:o:nRegexp::Token::Code(3)
2
3
4
6 PPIx::Regexp::Token::Code - Represent a chunk of Perl embedded in a
7 regular expression.
8
10 use PPIx::Regexp::Dumper;
11 PPIx::Regexp::Dumper->new(
12 'qr{(?{print "hello sailor\n"})}smx')->print;
13
15 "PPIx::Regexp::Token::Code" is a PPIx::Regexp::Token.
16
17 "PPIx::Regexp::Token::Code" is the parent of
18 PPIx::Regexp::Token::Interpolation.
19
21 This class represents a chunk of Perl code embedded in a regular
22 expression. Specifically, it results from parsing things like
23
24 (?{ code })
25 (??{ code })
26
27 or from the replacement side of an s///e. Technically, interpolations
28 are also code, but they parse differently and therefore end up in a
29 different token.
30
31 This token may not appear inside a regex set (i.e. "(?[ ... ])". If
32 found, it will become a "PPIx::Regexp::Token::Unknown".
33
35 This class provides the following public methods. Methods not
36 documented here are private, and unsupported in the sense that the
37 author reserves the right to change or remove them without notice.
38
39 ppi
40 This convenience method returns the PPI::Document representing the
41 content. This document should be considered read only.
42
44 Support is by the author. Please file bug reports at
45 <http://rt.cpan.org>, or in electronic mail to the author.
46
48 Thomas R. Wyant, III wyant at cpan dot org
49
51 Copyright (C) 2009-2018 by Thomas R. Wyant, III
52
53 This program is free software; you can redistribute it and/or modify it
54 under the same terms as Perl 5.10.0. For more details, see the full
55 text of the licenses in the directory LICENSES.
56
57 This program is distributed in the hope that it will be useful, but
58 without any warranty; without even the implied warranty of
59 merchantability or fitness for a particular purpose.
60
61
62
63perl v5.28.0 2018-08-12 PPIx::Regexp::Token::Code(3)