| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package TableData::Sample::DeNiro; |
|
2
|
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
430701
|
use 5.010001; |
|
|
4
|
|
|
|
|
20
|
|
|
4
|
4
|
|
|
4
|
|
29
|
use strict; |
|
|
4
|
|
|
|
|
8
|
|
|
|
4
|
|
|
|
|
129
|
|
|
5
|
4
|
|
|
4
|
|
29
|
use warnings; |
|
|
4
|
|
|
|
|
8
|
|
|
|
4
|
|
|
|
|
405
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
4
|
|
|
4
|
|
552
|
use Role::Tiny::With; |
|
|
4
|
|
|
|
|
8207
|
|
|
|
4
|
|
|
|
|
655
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
|
10
|
|
|
|
|
|
|
our $DATE = '2024-05-14'; # DATE |
|
11
|
|
|
|
|
|
|
our $DIST = 'TableDataRoles-Standard'; # DIST |
|
12
|
|
|
|
|
|
|
our $VERSION = '0.025'; # VERSION |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
with 'TableDataRole::Source::CSVInDATA'; |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
1; |
|
17
|
|
|
|
|
|
|
# ABSTRACT: Rotten Tomato ratings of movies with Robert De Niro |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=pod |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=encoding UTF-8 |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 NAME |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
TableData::Sample::DeNiro - Rotten Tomato ratings of movies with Robert De Niro |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 VERSION |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
This document describes version 0.025 of TableData::Sample::DeNiro (from Perl distribution TableDataRoles-Standard), released on 2024-05-14. |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
To use from Perl code: |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
use TableData::Sample::DeNiro; |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
my $td = TableData::Sample::DeNiro->new; |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
# Iterate rows of the table |
|
40
|
|
|
|
|
|
|
$td->each_row_arrayref(sub { my $row = shift; ... }); |
|
41
|
|
|
|
|
|
|
$td->each_row_hashref (sub { my $row = shift; ... }); |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
# Get the list of column names |
|
44
|
|
|
|
|
|
|
my @columns = $td->get_column_names; |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
# Get the number of rows |
|
47
|
|
|
|
|
|
|
my $row_count = $td->get_row_count; |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
See also L for other methods. |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
To use from command-line (using L CLI): |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
# Display as ASCII table and view with pager |
|
54
|
|
|
|
|
|
|
% tabledata Sample::DeNiro --page |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
# Get number of rows |
|
57
|
|
|
|
|
|
|
% tabledata --action count_rows Sample::DeNiro |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
See the L CLI's documentation for other available actions and options. |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 HOMEPAGE |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Please visit the project's homepage at L. |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 SOURCE |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Source repository is at L. |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
L |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
L |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 AUTHOR |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
perlancar |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 CONTRIBUTING |
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
To contribute, you can send patches by email/via RT, or send pull requests on |
|
83
|
|
|
|
|
|
|
GitHub. |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Most of the time, you don't need to build the distribution yourself. You can |
|
86
|
|
|
|
|
|
|
simply modify the code, then test via: |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
% prove -l |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
If you want to build the distribution (e.g. to try to install it locally on your |
|
91
|
|
|
|
|
|
|
system), you can install L, |
|
92
|
|
|
|
|
|
|
L, |
|
93
|
|
|
|
|
|
|
L, and sometimes one or two other |
|
94
|
|
|
|
|
|
|
Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond |
|
95
|
|
|
|
|
|
|
that are considered a bug and can be reported to me. |
|
96
|
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
This software is copyright (c) 2024, 2023, 2022, 2021 by perlancar . |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
102
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head1 BUGS |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
Please report any bugs or feature requests on the bugtracker website L |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
When submitting a bug or request, please include a test-file or a |
|
109
|
|
|
|
|
|
|
patch to an existing test-file that illustrates the bug or desired |
|
110
|
|
|
|
|
|
|
feature. |
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=cut |
|
113
|
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
__DATA__ |