TableData/Test/Source/CSVInDATA.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/Test/Source/AOH.pm ↑ Summary TableData/Test/Source/DBI.pm »
1 package TableData::Test::Source::CSVInDATA;
2  
3 3 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
10 3 our $DATE = '2024-05-14'; # DATE
11 3 our $DIST = 'TableDataRoles-Standard'; # DIST
12 3 our $VERSION = '0.025'; # VERSION
13  
14 3 with 'TableDataRole::Source::CSVInDATA';
15  
16 3 1;
17 # ABSTRACT: Number from 1-5 with English and Indonesian text
18  
19 =pod
20  
21 =encoding UTF-8
22  
23 =head1 NAME
24  
25 TableData::Test::Source::CSVInDATA - Number from 1-5 with English and Indonesian text
26  
27 =head1 VERSION
28  
29 This document describes version 0.025 of TableData::Test::Source::CSVInDATA (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::Test::Source::CSVInDATA;
36  
37 my $td = TableData::Test::Source::CSVInDATA->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 Test::Source::CSVInDATA --page
55  
56 # Get number of rows
57 % tabledata --action count_rows Test::Source::CSVInDATA
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 AUTHOR
70  
71 perlancar <perlancar@cpan.org>
72  
73 =head1 CONTRIBUTING
74  
75  
76 To contribute, you can send patches by email/via RT, or send pull requests on
77 GitHub.
78  
79 Most of the time, you don't need to build the distribution yourself. You can
80 simply modify the code, then test via:
81  
82 % prove -l
83  
84 If you want to build the distribution (e.g. to try to install it locally on your
85 system), you can install L<Dist::Zilla>,
86 L<Dist::Zilla::PluginBundle::Author::PERLANCAR>,
87 L<Pod::Weaver::PluginBundle::Author::PERLANCAR>, and sometimes one or two other
88 Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond
89 that are considered a bug and can be reported to me.
90  
91 =head1 COPYRIGHT AND LICENSE
92  
93 This software is copyright (c) 2024, 2023, 2022, 2021 by perlancar <perlancar@cpan.org>.
94  
95 This is free software; you can redistribute it and/or modify it under
96 the same terms as the Perl 5 programming language system itself.
97  
98 =head1 BUGS
99  
100 Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=TableDataRoles-Standard>
101  
102 When submitting a bug or request, please include a test-file or a
103 patch to an existing test-file that illustrates the bug or desired
104 feature.
105  
106 =cut
107  
108 __DATA__
« TableData/Test/Source/AOH.pm ↑ Summary TableData/Test/Source/DBI.pm »