line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package ## no critic: Modules::RequireFilenameMatchesPackage |
2
|
|
|
|
|
|
|
# hide from PAUSE |
3
|
|
|
|
|
|
|
TableDataRole::Test::Source::CSVInFile::Select; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
725
|
use 5.010001; |
|
1
|
|
|
|
|
3
|
|
6
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
7
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
27
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
5
|
use Role::Tiny; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
16
|
|
10
|
|
|
|
|
|
|
with 'TableDataRole::Source::CSVInFile'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
around new => sub { |
13
|
|
|
|
|
|
|
my $orig = shift; |
14
|
|
|
|
|
|
|
my ($class, %args) = @_; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
my $which = delete($args{which}) + 0; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
require File::Basename; |
19
|
|
|
|
|
|
|
my $filename = File::Basename::dirname(__FILE__) . "/../../../../../share/examples/eng-ind$which.csv"; |
20
|
|
|
|
|
|
|
unless (-f $filename) { |
21
|
|
|
|
|
|
|
require File::ShareDir; |
22
|
|
|
|
|
|
|
$filename = File::ShareDir::dist_file('TableDataRoles-Standard', "examples/eng-ind$which.csv"); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
$args{filename} = $filename; |
25
|
|
|
|
|
|
|
$orig->($class, %args); |
26
|
|
|
|
|
|
|
}; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
package TableData::Test::Source::CSVInFile::Select; |
29
|
|
|
|
|
|
|
|
30
|
1
|
|
|
1
|
|
386
|
use 5.010001; |
|
1
|
|
|
|
|
2
|
|
31
|
1
|
|
|
1
|
|
15
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
18
|
|
32
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
32
|
|
33
|
|
|
|
|
|
|
|
34
|
1
|
|
|
1
|
|
5
|
use Role::Tiny::With; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
119
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
37
|
|
|
|
|
|
|
our $DATE = '2022-02-20'; # DATE |
38
|
|
|
|
|
|
|
our $DIST = 'TableDataRoles-Standard'; # DIST |
39
|
|
|
|
|
|
|
our $VERSION = '0.014'; # VERSION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
with 'TableDataRole::Test::Source::CSVInFile::Select'; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
# ABSTRACT: Some English words with Indonesian equivalents |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |