1PPI::Token::Quote(3)  User Contributed Perl Documentation PPI::Token::Quote(3)
2
3
4

NAME

6       PPI::Token::Quote - String quote abstract base class
7

INHERITANCE

9         PPI::Token::Quote
10         isa PPI::Token
11             isa PPI::Element
12

DESCRIPTION

14       The "PPI::Token::Quote" class is never instantiated, and simply pro‐
15       vides a common abstract base class for the four quote classes.  In PPI,
16       a "quote" is limited to only the quote-like things that themselves
17       directly represent a string. (although this includes double quotes with
18       interpolated elements inside them).
19
20       The subclasses of "PPI::Token::Quote" are:
21
22       '' - PPI::Token::Quote::Single
23       "q{}" - PPI::Token::Quote::Literal
24       "" - PPI::Token::Quote::Double
25       "qq{}" - PPI::Token::Quote::Interpolate
26
27       The names are hopefully obvious enough not to have to explain what each
28       class is here. See their respective pages for more details.
29
30       Please note that although the here-doc does represent a literal string,
31       it is such a nasty piece of work that in PPI it is given the honor of
32       its own token class (PPI::Token::HereDoc).
33

METHODS

35       string
36
37       The "string" method is provided by all four ::Quote classes. It won't
38       get you the actual literal Perl value, but it will strip off the wrap‐
39       ping of the quotes.
40
41         # The following all return foo from the ->string method
42         'foo'
43         "foo"
44         q{foo}
45         qq <foo>
46

SUPPORT

48       See the support section in the main module.
49

AUTHOR

51       Adam Kennedy <adamk@cpan.org>
52
54       Copyright 2001 - 2006 Adam Kennedy.
55
56       This program is free software; you can redistribute it and/or modify it
57       under the same terms as Perl itself.
58
59       The full text of the license can be found in the LICENSE file included
60       with this module.
61
62
63
64perl v5.8.8                       2006-09-23              PPI::Token::Quote(3)
Impressum