PPI/Token/QuoteLike/Readline.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PPI/Token/QuoteLike/Command.pm ↑ Summary PPI/Token/QuoteLike/Regexp.pm »
1 package PPI::Token::QuoteLike::Readline;
2  
3 =pod
4  
5 =head1 NAME
6  
7 PPI::Token::QuoteLike::Readline - The readline quote-like operator
8  
9 =head1 INHERITANCE
10  
11 PPI::Token::QuoteLike::Readline
12 isa PPI::Token::QuoteLike
13 isa PPI::Token
14 isa PPI::Element
15  
16 =head1 DESCRIPTION
17  
18 The C<readline> quote-like operator is used to read either a single
19 line from a file, or all the lines from a file, as follows.
20  
21 # Read in a single line
22 $line = <FILE>;
23
24 # From a scalar handle
25 $line = <$filehandle>;
26
27 # Read all the lines
28 @lines = <FILE>;
29  
30 =head1 METHODS
31  
32 There are no methods available for C<PPI::Token::QuoteLike::Readline>
33 beyond those provided by the parent L<PPI::Token::QuoteLike>, L<PPI::Token>
34 and L<PPI::Element> classes.
35  
36 =cut
37  
38 63 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 63 ▶use PPI::Token::QuoteLike ();
Subroutine BEGIN: called CC=1 SCAR=0.0
40 63 ▶use PPI::Token::_QuoteEngine::Full ();
Subroutine BEGIN: called CC=1 SCAR=0.0
41  
42 63 our $VERSION = '1.260'; # VERSION
43  
44 63 our @ISA = qw{
45 PPI::Token::_QuoteEngine::Full
46 PPI::Token::QuoteLike
47 };
48  
49 63 1;
50  
51 =pod
52  
53 =head1 SUPPORT
54  
55 See the L<support section|PPI/SUPPORT> in the main module.
56  
57 =head1 AUTHOR
58  
59 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
60  
61 =head1 COPYRIGHT
62  
63 Copyright 2001 - 2011 Adam Kennedy.
64  
65 This program is free software; you can redistribute
66 it and/or modify it under the same terms as Perl itself.
67  
68 The full text of the license can be found in the
69 LICENSE file included with this module.
70  
71 =cut
« PPI/Token/QuoteLike/Command.pm ↑ Summary PPI/Token/QuoteLike/Regexp.pm »