line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
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 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 = ; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
# From a scalar handle |
25
|
|
|
|
|
|
|
$line = <$filehandle>; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# Read all the lines |
28
|
|
|
|
|
|
|
@lines = ; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 METHODS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
There are no methods available for C |
33
|
|
|
|
|
|
|
beyond those provided by the parent L, L |
34
|
|
|
|
|
|
|
and L classes. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=cut |
37
|
|
|
|
|
|
|
|
38
|
65
|
|
|
65
|
|
394
|
use strict; |
|
65
|
|
|
|
|
114
|
|
|
65
|
|
|
|
|
1467
|
|
39
|
65
|
|
|
65
|
|
303
|
use PPI::Token::QuoteLike (); |
|
65
|
|
|
|
|
115
|
|
|
65
|
|
|
|
|
647
|
|
40
|
65
|
|
|
65
|
|
234
|
use PPI::Token::_QuoteEngine::Full (); |
|
65
|
|
|
|
|
109
|
|
|
65
|
|
|
|
|
3142
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
our $VERSION = '1.276'; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
our @ISA = qw{ |
45
|
|
|
|
|
|
|
PPI::Token::_QuoteEngine::Full |
46
|
|
|
|
|
|
|
PPI::Token::QuoteLike |
47
|
|
|
|
|
|
|
}; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=pod |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 SUPPORT |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
See the L in the main module. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 AUTHOR |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Adam Kennedy Eadamk@cpan.orgE |
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 |