1PPIx::QuoteLike::Token:U:sIenrteCropnotlraitbiuotne(d3P)PPeIrxl::DQoucoutmeeLnitkaet:i:oTnoken::Interpolation(3)
2
3
4

NAME

6       PPIx::QuoteLike::Token::Interpolation - Represent an interpolation
7

SYNOPSIS

9       This class should not be instantiated by the user. See below for public
10       methods.
11

INHERITANCE

13       "PPIx::QuoteLike::Token::Interpolation" is a PPIx::QuoteLike::Token.
14
15       "PPIx::QuoteLike::Token::Interpolation" has no descendants.
16

DESCRIPTION

18       This Perl class represents an interpolation into a quote-like string.
19

METHODS

21       This class supports the following public methods in addition to those
22       of its superclass:
23
24   ppi
25        my $ppi = $elem->ppi();
26
27       This convenience method returns the PPI::Document representing the
28       content. This document should be considered read only.  An exception
29       will be thrown if PPI::Document can not be loaded.
30
31       Note that the content of the returned PPI::Document may not be the same
32       as the content of the original "PPIx::Regexp::Token::Interpolation".
33       This can happen because interpolated variable names may be enclosed in
34       curly brackets, but this does not happen in normal code. For example,
35       in "/${foo}bar/", the content of the
36       "PPIx::Regexp::Token::Interpolation" object will be '${foo}', but the
37       content of the "PPI::Document" will be '$foo'.
38
39   variables
40        say "Interpolates $_" for $elem->variables();
41
42       This convenience method returns all interpolated variables. Each is
43       returned only once, and they are returned in no particular order.
44

SEE ALSO

46       PPIx::QuoteLike::Token.
47

SUPPORT

49       Support is by the author. Please file bug reports at
50       <http://rt.cpan.org>, or in electronic mail to the author.
51

AUTHOR

53       Thomas R. Wyant, III wyant at cpan dot org
54
56       Copyright (C) 2016-2019 by Thomas R. Wyant, III
57
58       This program is free software; you can redistribute it and/or modify it
59       under the same terms as Perl 5.10.0. For more details, see the full
60       text of the licenses in the directory LICENSES.
61
62       This program is distributed in the hope that it will be useful, but
63       without any warranty; without even the implied warranty of
64       merchantability or fitness for a particular purpose.
65
66
67
68perl v5.30.1                      2020-P0P1I-x3:0:QuoteLike::Token::Interpolation(3)
Impressum