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
32 This class provides the following public methods. Methods not
33 documented here are private, and unsupported in the sense that the
34 author reserves the right to change or remove them without notice.
35
36 ppi
37 This convenience method returns the PPI::Document representing the
38 content. This document should be considered read only.
39
41 Support is by the author. Please file bug reports at
42 <http://rt.cpan.org>, or in electronic mail to the author.
43
45 Thomas R. Wyant, III wyant at cpan dot org
46
48 Copyright (C) 2009-2010, Thomas R. Wyant, III
49
50 This program is free software; you can redistribute it and/or modify it
51 under the same terms as Perl 5.10.0. For more details, see the full
52 text of the licenses in the directory LICENSES.
53
54 This program is distributed in the hope that it will be useful, but
55 without any warranty; without even the implied warranty of
56 merchantability or fitness for a particular purpose.
57
58
59
60perl v5.12.0 2010-06-08 PPIx::Regexp::Token::Code(3)