line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Venus::True; |
2
|
|
|
|
|
|
|
|
3
|
87
|
|
|
87
|
|
1746
|
use 5.018; |
|
87
|
|
|
|
|
307
|
|
4
|
|
|
|
|
|
|
|
5
|
87
|
|
|
87
|
|
475
|
use strict; |
|
87
|
|
|
|
|
181
|
|
|
87
|
|
|
|
|
2242
|
|
6
|
87
|
|
|
87
|
|
462
|
use warnings; |
|
87
|
|
|
|
|
191
|
|
|
87
|
|
|
|
|
2777
|
|
7
|
|
|
|
|
|
|
|
8
|
87
|
|
|
87
|
|
568
|
use Scalar::Util (); |
|
87
|
|
|
|
|
182
|
|
|
87
|
|
|
|
|
8569
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
state $true = Scalar::Util::dualvar(1, "1"); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
use overload ( |
13
|
1
|
|
|
1
|
|
15
|
'!' => sub{!$true}, |
14
|
1
|
|
|
1
|
|
169
|
'bool' => sub{$true}, |
15
|
87
|
|
|
|
|
877
|
fallback => 1, |
16
|
87
|
|
|
87
|
|
110056
|
); |
|
87
|
|
|
|
|
90572
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# METHODS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub new { |
21
|
2
|
|
|
2
|
0
|
33
|
return bless({}); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub value { |
25
|
3091
|
|
|
3091
|
1
|
15694
|
return $true; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Venus::True - True Class |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=cut |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 ABSTRACT |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
True Class for Perl 5 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 SYNOPSIS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
package main; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
use Venus::True; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
my $true = Venus::True->new; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
# $true->value; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=cut |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 DESCRIPTION |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This package provides the global C value used in L and |
59
|
|
|
|
|
|
|
the L function. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=cut |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 METHODS |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This package provides the following methods: |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head2 value |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
value() (Bool) |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
The value method returns value representing the global C value. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
I> |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=over 4 |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item value example 1 |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
# given: synopsis; |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
my $value = $true->value; |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
# 1 |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=back |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=cut |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head1 AUTHORS |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Awncorp, C |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=cut |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head1 LICENSE |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Copyright (C) 2000, Al Newkirk. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
This program is free software, you can redistribute it and/or modify it under |
102
|
|
|
|
|
|
|
the terms of the Apache license version 2.0. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=cut |