TableData/Sample/DeNiro.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« TableData/Munge/Reverse.pm ↑ Summary TableData/Test/Source/AOA.pm »
1 package TableData::Sample::DeNiro;
2  
3 4 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 4 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
10 4 our $DATE = '2024-05-14'; # DATE
11 4 our $DIST = 'TableDataRoles-Standard'; # DIST
12 4 our $VERSION = '0.025'; # VERSION
13  
14 4 with 'TableDataRole::Source::CSVInDATA';
15  
16 4 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<TableDataRole::Spec::Basic> for other methods.
50  
51 To use from command-line (using L<tabledata> 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<tabledata> CLI's documentation for other available actions and options.
60  
61 =head1 HOMEPAGE
62  
63 Please visit the project's homepage at L<https://metacpan.org/release/TableDataRoles-Standard>.
64  
65 =head1 SOURCE
66  
67 Source repository is at L<https://github.com/perlancar/perl-TableDataRoles-Standard>.
68  
69 =head1 SEE ALSO
70  
71 L<ArrayData::Sample::DeNiro>
72  
73 L<HashData::Sample::DeNiro>
74  
75 =head1 AUTHOR
76  
77 perlancar <perlancar@cpan.org>
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<Dist::Zilla>,
92 L<Dist::Zilla::PluginBundle::Author::PERLANCAR>,
93 L<Pod::Weaver::PluginBundle::Author::PERLANCAR>, 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 <perlancar@cpan.org>.
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<https://rt.cpan.org/Public/Dist/Display.html?Name=TableDataRoles-Standard>
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__
« TableData/Munge/Reverse.pm ↑ Summary TableData/Test/Source/AOA.pm »