line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Acme::Boolean; |
2
|
|
|
|
|
|
|
# ABSTRACT: There is more then one way to be true. |
3
|
|
|
|
|
|
|
$Acme::Boolean::VERSION = '0.7'; |
4
|
3
|
|
|
3
|
|
1500
|
use strict; |
|
3
|
|
|
|
|
18
|
|
|
3
|
|
|
|
|
402
|
|
5
|
3
|
|
|
3
|
|
15
|
use warnings; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
116
|
|
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
1285
|
use boolean ':all'; |
|
3
|
|
|
|
|
9594
|
|
|
3
|
|
|
|
|
14
|
|
8
|
|
|
|
|
|
|
|
9
|
3
|
|
|
3
|
|
381
|
use base 'Exporter'; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
225
|
|
10
|
|
|
|
|
|
|
|
11
|
3
|
|
|
3
|
|
16
|
no strict 'refs'; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
1089
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
my @true = map { |
14
|
|
|
|
|
|
|
*{"$_"} = \&true; |
15
|
|
|
|
|
|
|
$_; |
16
|
|
|
|
|
|
|
} map { ($_, uc($_)) } qw(yes verifiable trusty accurate actual appropriate authentic authoritative correct dependable direct exact factual fitting genuine honest indubitable kosher lawful legal legitimate natural normal perfect precise proper pure regular right rightful sincere straight trustworthy truthful typical undeniable undesigning undoubted unerring unfaked unfeigned unquestionable veracious veridical veritable wash); |
17
|
|
|
|
|
|
|
|
18
|
29
|
|
|
29
|
0
|
6296
|
sub NO { false } |
19
|
4
|
|
|
4
|
0
|
3591
|
sub no { false } |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
my @false = map { |
22
|
|
|
|
|
|
|
*{$_} = \&false; |
23
|
|
|
|
|
|
|
$_; |
24
|
|
|
|
|
|
|
} map { ($_, uc($_)) } qw(untrue wrong incorrect errorneous fallacious untruthful nah apocryphal beguiling bogus casuistic concocted counterfactual deceitful deceiving delusive dishonest distorted erroneous ersatz fake fanciful faulty fictitious fishy fraudulent illusive imaginary improper inaccurate inexact invalid lying mendacious misleading misrepresentative mistaken phony sham sophistical specious spurious unfounded unreal unsound); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
push @false, 'NO', 'no'; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
my @ad = map { |
29
|
20
|
|
|
20
|
|
2007
|
*{$_} = sub($) { shift; }; |
30
|
|
|
|
|
|
|
$_; |
31
|
|
|
|
|
|
|
} map { ($_, uc($_)) } qw(just so totally very definitely really certainly surely unquestionably undoubtedly absolutely exactly); |
32
|
|
|
|
|
|
|
|
33
|
1
|
|
|
1
|
0
|
2
|
sub NOT($) { not shift } |
34
|
|
|
|
|
|
|
push @ad, 'NOT'; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
our @EXPORT = (qw(true false), @ad, @true, @false); |
37
|
|
|
|
|
|
|
our @EXPORT_OK = qw(isTrue isFalse isBoolean); |
38
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( |
39
|
|
|
|
|
|
|
default => [@EXPORT], |
40
|
|
|
|
|
|
|
all => [@EXPORT, @EXPORT_OK] |
41
|
|
|
|
|
|
|
); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__END__ |