line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Smart::Match::Overload; |
2
|
|
|
|
|
|
|
$Smart::Match::Overload::VERSION = '0.008'; |
3
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
27
|
|
4
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
18
|
|
5
|
1
|
|
|
1
|
|
3
|
use XSLoader; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
71
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
XSLoader::load(__PACKAGE__, __PACKAGE__->VERSION); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
use overload |
10
|
|
|
|
|
|
|
'~~' => sub { |
11
|
163
|
|
|
163
|
|
3580
|
my ($self, undef, $rev) = @_; |
12
|
163
|
50
|
|
|
|
274
|
return if not $rev; |
13
|
163
|
|
|
|
|
381
|
return $self->() for $_[1]; |
14
|
|
|
|
|
|
|
}, |
15
|
1
|
|
|
1
|
|
939
|
bool => \&_boolean; |
|
1
|
|
|
|
|
761
|
|
|
1
|
|
|
|
|
9
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub new { |
18
|
120
|
|
|
120
|
1
|
139
|
my ($class, $sub) = @_; |
19
|
120
|
|
|
|
|
2653
|
return bless $sub, $class; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
# ABSTRACT: An internal class for closure based matcher objects. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |