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
|
|
636
|
use 5.010001; |
|
1
|
|
|
|
|
3
|
|
6
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
20
|
|
7
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
5
|
use Role::Tiny; |
|
1
|
|
|
|
|
2
|
|
|
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
|
|
483
|
use 5.010001; |
|
1
|
|
|
|
|
3
|
|
31
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
20
|
|
32
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
43
|
|
33
|
|
|
|
|
|
|
|
34
|
1
|
|
|
1
|
|
6
|
use Role::Tiny::With; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
121
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
37
|
|
|
|
|
|
|
our $DATE = '2023-06-14'; # DATE |
38
|
|
|
|
|
|
|
our $DIST = 'TableDataRoles-Standard'; # DIST |
39
|
|
|
|
|
|
|
our $VERSION = '0.016'; # VERSION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
with 'TableDataRole::Test::Source::CSVInFile::Select'; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
# ABSTRACT: Some English words with Indonesian equivalents |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |