PPI/Token/QuoteLike/Readline.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 20 / 20 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 62 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 62 ▶use PPI::Token::QuoteLike ();
Subroutine BEGIN: called CC=1 SCAR=0.0
40 62 ▶use PPI::Token::_QuoteEngine::Full ();
Subroutine BEGIN: called CC=1 SCAR=0.0
41  
42 62 ▶use vars qw{$VERSION @ISA};
Subroutine BEGIN: called CC=1 SCAR=0.0
43 BEGIN {
44 62 ▶ $VERSION = '1.236';
Subroutine BEGIN: called CC=1 SCAR=0.0
45 62 @ISA = qw{
46 PPI::Token::_QuoteEngine::Full
47 PPI::Token::QuoteLike
48 };
49 }
50  
51 62 1;
52  
53 =pod
54  
55 =head1 SUPPORT
56  
57 See the L<support section|PPI/SUPPORT> in the main module.
58  
59 =head1 AUTHOR
60  
61 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
62  
63 =head1 COPYRIGHT
64  
65 Copyright 2001 - 2011 Adam Kennedy.
66  
67 This program is free software; you can redistribute
68 it and/or modify it under the same terms as Perl itself.
69  
70 The full text of the license can be found in the
71 LICENSE file included with this module.
72  
73 =cut
« PPI/Token/QuoteLike/Command.pm ↑ Summary PPI/Token/QuoteLike/Regexp.pm »