1PPIx::QuoteLike::Utils(U3s)er Contributed Perl DocumentatPiPoInx::QuoteLike::Utils(3)
2
3
4

NAME

6       PPIx::QuoteLike::Utils - Utility subroutines for PPIx::QuoteLike;
7

SYNOPSIS

9        use PPIx::QuoteLike::Utils qw{ __variables };
10
11        say for __variables( PPI::Document->new( \'$foo' );
12

DESCRIPTION

14       This Perl module holds code for PPIx::QuoteLike that did not seem to
15       fit anywhere else.
16

SUBROUTINES

18       This module supports the following public subroutines:
19
20   __variables
21        say for __variables( PPI::Document->new( \'$foo' );
22
23       Despite the leading underscores, this exportable subroutine is public
24       and supported. The underscores are so it will not appear to be public
25       code to various tools when imported into other code.
26
27       This subroutine takes as its only argument a PPI::Element, and returns
28       the names of all variables found in that element, in no particular
29       order. Scope is not taken into account.
30
31       In addition to reporting variables parsed as such by PPI, and various
32       corner cases such as "${]}" where PPI is blind to the use of the
33       variable, this subroutine looks inside the following PPI classes:
34
35           PPI::Token::Quote
36           PPI::Token::QuoteLike::Backtick
37           PPI::Token::QuoteLike::Command
38           PPI::Token::QuoteLike::Readline
39           PPI::Token::HereDoc
40
41       If PPIx::Regexp is installed, it will also look inside
42
43           PPI::Token::QuoteLike::Regexp
44           PPI::Token::Regexp::Match
45           PPI::Token::Regexp::Substitute
46
47       Unfortunately I can not make "PPIx::Regexp" a requirement for this
48       module, because of the possibility of a circular dependency.
49

SUPPORT

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

AUTHOR

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