PPI/Token/QuoteLike.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PPI/Token/Quote/Literal.pm ↑ Summary PPI/Token/QuoteLike/Backtick.pm »
1 package PPI::Token::QuoteLike;
2  
3 =pod
4  
5 =head1 NAME
6  
7 PPI::Token::QuoteLike - Quote-like operator abstract base class
8  
9 =head1 INHERITANCE
10  
11 PPI::Token::QuoteLike
12 isa PPI::Token
13 isa PPI::Element
14  
15 =head1 DESCRIPTION
16  
17 The C<PPI::Token::QuoteLike> class is never instantiated, and simply
18 provides a common abstract base class for the five quote-like operator
19 classes. In PPI, a "quote-like" is the set of quote-like things that
20 exclude the string quotes and regular expressions.
21  
22 The subclasses of C<PPI::Token::QuoteLike> are:
23  
24 =over 2
25  
26 =item qw{} - L<PPI::Token::QuoteLike::Words>
27  
28 =item `` - L<PPI::Token::QuoteLike::Backtick>
29  
30 =item qx{} - L<PPI::Token::QuoteLike::Command>
31  
32 =item qr// - L<PPI::Token::QuoteLike::Regexp>
33  
34 =item <FOO> - L<PPI::Token::QuoteLike::Readline>
35  
36 =back
37  
38 The names are hopefully obvious enough not to have to explain what
39 each class is. See their pages for more details.
40  
41 You may note that the backtick and command quote-like are treated
42 separately, even though they do the same thing. This is intentional,
43 as the inherit from and are processed by two different parts of the
44 PPI's quote engine.
45  
46 =cut
47  
48 62 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
49 62 ▶use PPI::Token ();
Subroutine BEGIN: called CC=1 SCAR=0.0
50  
51 62 ▶use vars qw{$VERSION @ISA};
Subroutine BEGIN: called CC=1 SCAR=0.0
52 BEGIN {
53 62 ▶ $VERSION = '1.236';
Subroutine BEGIN: called CC=1 SCAR=0.0
54 62 @ISA = 'PPI::Token';
55 }
56  
57 62 1;
58  
59 =pod
60  
61 =head1 SUPPORT
62  
63 See the L<support section|PPI/SUPPORT> in the main module.
64  
65 =head1 AUTHOR
66  
67 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
68  
69 =head1 COPYRIGHT
70  
71 Copyright 2001 - 2011 Adam Kennedy.
72  
73 This program is free software; you can redistribute
74 it and/or modify it under the same terms as Perl itself.
75  
76 The full text of the license can be found in the
77 LICENSE file included with this module.
78  
79 =cut
« PPI/Token/Quote/Literal.pm ↑ Summary PPI/Token/QuoteLike/Backtick.pm »