line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
13
|
|
|
13
|
|
797
|
use 5.006; |
|
13
|
|
|
|
|
40
|
|
2
|
13
|
|
|
13
|
|
58
|
use strict; |
|
13
|
|
|
|
|
23
|
|
|
13
|
|
|
|
|
280
|
|
3
|
13
|
|
|
13
|
|
230
|
use warnings; |
|
13
|
|
|
|
|
18
|
|
|
13
|
|
|
|
|
3537
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Set::Associate::Utils; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: Shared Guts between Set::Associate modules |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.004001'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
require Exporter; |
14
|
|
|
|
|
|
|
*import = \&Exporter::import; ## no critic (ProhibitCallsToUnexportedSubs) |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our @EXPORT_OK = qw( _warn_nonmethod ); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub _carp { |
19
|
5
|
|
|
5
|
|
47
|
require Carp; |
20
|
5
|
|
|
|
|
1622
|
goto \&Carp::carp; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub _blessed { |
24
|
0
|
|
|
0
|
|
0
|
require Scalar::Util; |
25
|
0
|
|
|
|
|
0
|
goto \&Scalar::Util::blessed; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
## no critic (RequireArgUnpacking) |
29
|
|
|
|
|
|
|
sub _warn_nonmethod { |
30
|
15
|
100
|
66
|
15
|
|
102
|
if ( defined $_[0] and not ref $_[0] ) { |
31
|
10
|
50
|
|
|
|
130
|
return if $_[0]->isa( $_[1] ); |
32
|
|
|
|
|
|
|
} |
33
|
5
|
50
|
33
|
|
|
24
|
if ( defined $_[0] and _blessed( $_[0] ) ) { |
34
|
0
|
0
|
|
|
|
0
|
return if $_[0]->isa( $_[1] ); |
35
|
|
|
|
|
|
|
} |
36
|
5
|
|
|
|
|
34
|
_carp( $_[1] . '->' . $_[2] . ' should be called as a method' ); |
37
|
5
|
|
|
|
|
37
|
return 1; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__END__ |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=pod |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=encoding UTF-8 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 NAME |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Set::Associate::Utils - Shared Guts between Set::Associate modules |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 VERSION |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
version 0.004001 |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 AUTHOR |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Kent Fredric <kentnl@cpan.org> |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
65
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |