line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Venus::Float; |
2
|
|
|
|
|
|
|
|
3
|
14
|
|
|
14
|
|
342
|
use 5.018; |
|
14
|
|
|
|
|
55
|
|
4
|
|
|
|
|
|
|
|
5
|
14
|
|
|
14
|
|
78
|
use strict; |
|
14
|
|
|
|
|
48
|
|
|
14
|
|
|
|
|
330
|
|
6
|
14
|
|
|
14
|
|
118
|
use warnings; |
|
14
|
|
|
|
|
39
|
|
|
14
|
|
|
|
|
430
|
|
7
|
|
|
|
|
|
|
|
8
|
14
|
|
|
14
|
|
77
|
use Venus::Class 'base'; |
|
14
|
|
|
|
|
50
|
|
|
14
|
|
|
|
|
100
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
base 'Venus::Number'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# METHODS |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub default { |
15
|
180
|
|
|
180
|
1
|
711
|
return '0.0'; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 NAME |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Venus::Float - Float Class |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=cut |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 ABSTRACT |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Float Class for Perl 5 |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=cut |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 SYNOPSIS |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
package main; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
use Venus::Float; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
my $float = Venus::Float->new(1.23); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
# $float->int; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=cut |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 DESCRIPTION |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This package provides methods for manipulating float data. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=cut |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 INHERITS |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This package inherits behaviors from: |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
L |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=cut |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 METHODS |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
This package provides the following methods: |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=cut |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head2 cast |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
cast(string $kind) (object | undef) |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
The cast method converts L<"value"|Venus::Kind::Value> objects between |
71
|
|
|
|
|
|
|
different I<"value"> object types, based on the name of the type provided. This |
72
|
|
|
|
|
|
|
method will return C if the invocant is not a L. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
I> |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=over 4 |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=item cast example 1 |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
package main; |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
use Venus::Float; |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
my $float = Venus::Float->new; |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
my $cast = $float->cast('array'); |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
# bless({ value => ["0.0"] }, "Venus::Array") |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=back |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=over 4 |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=item cast example 2 |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
package main; |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
use Venus::Float; |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
my $float = Venus::Float->new; |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
my $cast = $float->cast('boolean'); |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
# bless({ value => 1 }, "Venus::Boolean") |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=back |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=over 4 |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=item cast example 3 |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
package main; |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
use Venus::Float; |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
my $float = Venus::Float->new; |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
my $cast = $float->cast('code'); |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
# bless({ value => sub { ... } }, "Venus::Code") |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=back |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=over 4 |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=item cast example 4 |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
package main; |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
use Venus::Float; |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
my $float = Venus::Float->new; |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
my $cast = $float->cast('float'); |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
# bless({ value => "0.0" }, "Venus::Float") |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=back |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=over 4 |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=item cast example 5 |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
package main; |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
use Venus::Float; |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
my $float = Venus::Float->new; |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
my $cast = $float->cast('hash'); |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
# bless({ value => { "0.0" => "0.0" } }, "Venus::Hash") |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
=back |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
=over 4 |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=item cast example 6 |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
package main; |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
use Venus::Float; |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
my $float = Venus::Float->new; |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
my $cast = $float->cast('number'); |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
# bless({ value => 0 }, "Venus::Number") |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
=back |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
=over 4 |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=item cast example 7 |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
package main; |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
use Venus::Float; |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
my $float = Venus::Float->new; |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
my $cast = $float->cast('regexp'); |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
# bless({ value => qr/(?^u:0\.0)/ }, "Venus::Regexp") |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
=back |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
=over 4 |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
=item cast example 8 |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
package main; |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
use Venus::Float; |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
my $float = Venus::Float->new; |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
my $cast = $float->cast('scalar'); |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
# bless({ value => \"0.0" }, "Venus::Scalar") |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
=back |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
=over 4 |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
=item cast example 9 |
207
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
package main; |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
use Venus::Float; |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
my $float = Venus::Float->new; |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
my $cast = $float->cast('string'); |
215
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
# bless({ value => "0.0" }, "Venus::String") |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
=back |
219
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
=over 4 |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
=item cast example 10 |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
package main; |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
use Venus::Float; |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
my $float = Venus::Float->new; |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
my $cast = $float->cast('undef'); |
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
# bless({ value => undef }, "Venus::Undef") |
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
=back |
235
|
|
|
|
|
|
|
|
236
|
|
|
|
|
|
|
=cut |
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
=head2 default |
239
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
default() (string) |
241
|
|
|
|
|
|
|
|
242
|
|
|
|
|
|
|
The default method returns the default value, i.e. C<0.0>. |
243
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
I> |
245
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
=over 4 |
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
=item default example 1 |
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
# given: synopsis; |
251
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
my $default = $float->default; |
253
|
|
|
|
|
|
|
|
254
|
|
|
|
|
|
|
# "0.0" |
255
|
|
|
|
|
|
|
|
256
|
|
|
|
|
|
|
=back |
257
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
=cut |
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
=head2 eq |
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
eq(any $arg) (boolean) |
263
|
|
|
|
|
|
|
|
264
|
|
|
|
|
|
|
The eq method performs an I<"equals"> operation using the argument provided. |
265
|
|
|
|
|
|
|
|
266
|
|
|
|
|
|
|
I> |
267
|
|
|
|
|
|
|
|
268
|
|
|
|
|
|
|
=over 4 |
269
|
|
|
|
|
|
|
|
270
|
|
|
|
|
|
|
=item eq example 1 |
271
|
|
|
|
|
|
|
|
272
|
|
|
|
|
|
|
package main; |
273
|
|
|
|
|
|
|
|
274
|
|
|
|
|
|
|
use Venus::Array; |
275
|
|
|
|
|
|
|
use Venus::Float; |
276
|
|
|
|
|
|
|
|
277
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
278
|
|
|
|
|
|
|
my $rvalue = Venus::Array->new; |
279
|
|
|
|
|
|
|
|
280
|
|
|
|
|
|
|
my $result = $lvalue->eq($rvalue); |
281
|
|
|
|
|
|
|
|
282
|
|
|
|
|
|
|
# 0 |
283
|
|
|
|
|
|
|
|
284
|
|
|
|
|
|
|
=back |
285
|
|
|
|
|
|
|
|
286
|
|
|
|
|
|
|
=over 4 |
287
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
=item eq example 2 |
289
|
|
|
|
|
|
|
|
290
|
|
|
|
|
|
|
package main; |
291
|
|
|
|
|
|
|
|
292
|
|
|
|
|
|
|
use Venus::Code; |
293
|
|
|
|
|
|
|
use Venus::Float; |
294
|
|
|
|
|
|
|
|
295
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
296
|
|
|
|
|
|
|
my $rvalue = Venus::Code->new; |
297
|
|
|
|
|
|
|
|
298
|
|
|
|
|
|
|
my $result = $lvalue->eq($rvalue); |
299
|
|
|
|
|
|
|
|
300
|
|
|
|
|
|
|
# 0 |
301
|
|
|
|
|
|
|
|
302
|
|
|
|
|
|
|
=back |
303
|
|
|
|
|
|
|
|
304
|
|
|
|
|
|
|
=over 4 |
305
|
|
|
|
|
|
|
|
306
|
|
|
|
|
|
|
=item eq example 3 |
307
|
|
|
|
|
|
|
|
308
|
|
|
|
|
|
|
package main; |
309
|
|
|
|
|
|
|
|
310
|
|
|
|
|
|
|
use Venus::Float; |
311
|
|
|
|
|
|
|
|
312
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
313
|
|
|
|
|
|
|
my $rvalue = Venus::Float->new; |
314
|
|
|
|
|
|
|
|
315
|
|
|
|
|
|
|
my $result = $lvalue->eq($rvalue); |
316
|
|
|
|
|
|
|
|
317
|
|
|
|
|
|
|
# 1 |
318
|
|
|
|
|
|
|
|
319
|
|
|
|
|
|
|
=back |
320
|
|
|
|
|
|
|
|
321
|
|
|
|
|
|
|
=over 4 |
322
|
|
|
|
|
|
|
|
323
|
|
|
|
|
|
|
=item eq example 4 |
324
|
|
|
|
|
|
|
|
325
|
|
|
|
|
|
|
package main; |
326
|
|
|
|
|
|
|
|
327
|
|
|
|
|
|
|
use Venus::Float; |
328
|
|
|
|
|
|
|
use Venus::Hash; |
329
|
|
|
|
|
|
|
|
330
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
331
|
|
|
|
|
|
|
my $rvalue = Venus::Hash->new; |
332
|
|
|
|
|
|
|
|
333
|
|
|
|
|
|
|
my $result = $lvalue->eq($rvalue); |
334
|
|
|
|
|
|
|
|
335
|
|
|
|
|
|
|
# 0 |
336
|
|
|
|
|
|
|
|
337
|
|
|
|
|
|
|
=back |
338
|
|
|
|
|
|
|
|
339
|
|
|
|
|
|
|
=over 4 |
340
|
|
|
|
|
|
|
|
341
|
|
|
|
|
|
|
=item eq example 5 |
342
|
|
|
|
|
|
|
|
343
|
|
|
|
|
|
|
package main; |
344
|
|
|
|
|
|
|
|
345
|
|
|
|
|
|
|
use Venus::Float; |
346
|
|
|
|
|
|
|
use Venus::Number; |
347
|
|
|
|
|
|
|
|
348
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
349
|
|
|
|
|
|
|
my $rvalue = Venus::Number->new; |
350
|
|
|
|
|
|
|
|
351
|
|
|
|
|
|
|
my $result = $lvalue->eq($rvalue); |
352
|
|
|
|
|
|
|
|
353
|
|
|
|
|
|
|
# 1 |
354
|
|
|
|
|
|
|
|
355
|
|
|
|
|
|
|
=back |
356
|
|
|
|
|
|
|
|
357
|
|
|
|
|
|
|
=over 4 |
358
|
|
|
|
|
|
|
|
359
|
|
|
|
|
|
|
=item eq example 6 |
360
|
|
|
|
|
|
|
|
361
|
|
|
|
|
|
|
package main; |
362
|
|
|
|
|
|
|
|
363
|
|
|
|
|
|
|
use Venus::Float; |
364
|
|
|
|
|
|
|
use Venus::Regexp; |
365
|
|
|
|
|
|
|
|
366
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
367
|
|
|
|
|
|
|
my $rvalue = Venus::Regexp->new; |
368
|
|
|
|
|
|
|
|
369
|
|
|
|
|
|
|
my $result = $lvalue->eq($rvalue); |
370
|
|
|
|
|
|
|
|
371
|
|
|
|
|
|
|
# 0 |
372
|
|
|
|
|
|
|
|
373
|
|
|
|
|
|
|
=back |
374
|
|
|
|
|
|
|
|
375
|
|
|
|
|
|
|
=over 4 |
376
|
|
|
|
|
|
|
|
377
|
|
|
|
|
|
|
=item eq example 7 |
378
|
|
|
|
|
|
|
|
379
|
|
|
|
|
|
|
package main; |
380
|
|
|
|
|
|
|
|
381
|
|
|
|
|
|
|
use Venus::Float; |
382
|
|
|
|
|
|
|
use Venus::Scalar; |
383
|
|
|
|
|
|
|
|
384
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
385
|
|
|
|
|
|
|
my $rvalue = Venus::Scalar->new; |
386
|
|
|
|
|
|
|
|
387
|
|
|
|
|
|
|
my $result = $lvalue->eq($rvalue); |
388
|
|
|
|
|
|
|
|
389
|
|
|
|
|
|
|
# 0 |
390
|
|
|
|
|
|
|
|
391
|
|
|
|
|
|
|
=back |
392
|
|
|
|
|
|
|
|
393
|
|
|
|
|
|
|
=over 4 |
394
|
|
|
|
|
|
|
|
395
|
|
|
|
|
|
|
=item eq example 8 |
396
|
|
|
|
|
|
|
|
397
|
|
|
|
|
|
|
package main; |
398
|
|
|
|
|
|
|
|
399
|
|
|
|
|
|
|
use Venus::Float; |
400
|
|
|
|
|
|
|
use Venus::String; |
401
|
|
|
|
|
|
|
|
402
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
403
|
|
|
|
|
|
|
my $rvalue = Venus::String->new; |
404
|
|
|
|
|
|
|
|
405
|
|
|
|
|
|
|
my $result = $lvalue->eq($rvalue); |
406
|
|
|
|
|
|
|
|
407
|
|
|
|
|
|
|
# 1 |
408
|
|
|
|
|
|
|
|
409
|
|
|
|
|
|
|
=back |
410
|
|
|
|
|
|
|
|
411
|
|
|
|
|
|
|
=over 4 |
412
|
|
|
|
|
|
|
|
413
|
|
|
|
|
|
|
=item eq example 9 |
414
|
|
|
|
|
|
|
|
415
|
|
|
|
|
|
|
package main; |
416
|
|
|
|
|
|
|
|
417
|
|
|
|
|
|
|
use Venus::Float; |
418
|
|
|
|
|
|
|
use Venus::Undef; |
419
|
|
|
|
|
|
|
|
420
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
421
|
|
|
|
|
|
|
my $rvalue = Venus::Undef->new; |
422
|
|
|
|
|
|
|
|
423
|
|
|
|
|
|
|
my $result = $lvalue->eq($rvalue); |
424
|
|
|
|
|
|
|
|
425
|
|
|
|
|
|
|
# 1 |
426
|
|
|
|
|
|
|
|
427
|
|
|
|
|
|
|
=back |
428
|
|
|
|
|
|
|
|
429
|
|
|
|
|
|
|
=cut |
430
|
|
|
|
|
|
|
|
431
|
|
|
|
|
|
|
=head2 ge |
432
|
|
|
|
|
|
|
|
433
|
|
|
|
|
|
|
ge(any $arg) (boolean) |
434
|
|
|
|
|
|
|
|
435
|
|
|
|
|
|
|
The ge method performs a I<"greater-than-or-equal-to"> operation using the |
436
|
|
|
|
|
|
|
argument provided. |
437
|
|
|
|
|
|
|
|
438
|
|
|
|
|
|
|
I> |
439
|
|
|
|
|
|
|
|
440
|
|
|
|
|
|
|
=over 4 |
441
|
|
|
|
|
|
|
|
442
|
|
|
|
|
|
|
=item ge example 1 |
443
|
|
|
|
|
|
|
|
444
|
|
|
|
|
|
|
package main; |
445
|
|
|
|
|
|
|
|
446
|
|
|
|
|
|
|
use Venus::Array; |
447
|
|
|
|
|
|
|
use Venus::Float; |
448
|
|
|
|
|
|
|
|
449
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
450
|
|
|
|
|
|
|
my $rvalue = Venus::Array->new; |
451
|
|
|
|
|
|
|
|
452
|
|
|
|
|
|
|
my $result = $lvalue->ge($rvalue); |
453
|
|
|
|
|
|
|
|
454
|
|
|
|
|
|
|
# 0 |
455
|
|
|
|
|
|
|
|
456
|
|
|
|
|
|
|
=back |
457
|
|
|
|
|
|
|
|
458
|
|
|
|
|
|
|
=over 4 |
459
|
|
|
|
|
|
|
|
460
|
|
|
|
|
|
|
=item ge example 2 |
461
|
|
|
|
|
|
|
|
462
|
|
|
|
|
|
|
package main; |
463
|
|
|
|
|
|
|
|
464
|
|
|
|
|
|
|
use Venus::Code; |
465
|
|
|
|
|
|
|
use Venus::Float; |
466
|
|
|
|
|
|
|
|
467
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
468
|
|
|
|
|
|
|
my $rvalue = Venus::Code->new; |
469
|
|
|
|
|
|
|
|
470
|
|
|
|
|
|
|
my $result = $lvalue->ge($rvalue); |
471
|
|
|
|
|
|
|
|
472
|
|
|
|
|
|
|
# 0 |
473
|
|
|
|
|
|
|
|
474
|
|
|
|
|
|
|
=back |
475
|
|
|
|
|
|
|
|
476
|
|
|
|
|
|
|
=over 4 |
477
|
|
|
|
|
|
|
|
478
|
|
|
|
|
|
|
=item ge example 3 |
479
|
|
|
|
|
|
|
|
480
|
|
|
|
|
|
|
package main; |
481
|
|
|
|
|
|
|
|
482
|
|
|
|
|
|
|
use Venus::Float; |
483
|
|
|
|
|
|
|
|
484
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
485
|
|
|
|
|
|
|
my $rvalue = Venus::Float->new; |
486
|
|
|
|
|
|
|
|
487
|
|
|
|
|
|
|
my $result = $lvalue->ge($rvalue); |
488
|
|
|
|
|
|
|
|
489
|
|
|
|
|
|
|
# 1 |
490
|
|
|
|
|
|
|
|
491
|
|
|
|
|
|
|
=back |
492
|
|
|
|
|
|
|
|
493
|
|
|
|
|
|
|
=over 4 |
494
|
|
|
|
|
|
|
|
495
|
|
|
|
|
|
|
=item ge example 4 |
496
|
|
|
|
|
|
|
|
497
|
|
|
|
|
|
|
package main; |
498
|
|
|
|
|
|
|
|
499
|
|
|
|
|
|
|
use Venus::Float; |
500
|
|
|
|
|
|
|
use Venus::Hash; |
501
|
|
|
|
|
|
|
|
502
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
503
|
|
|
|
|
|
|
my $rvalue = Venus::Hash->new; |
504
|
|
|
|
|
|
|
|
505
|
|
|
|
|
|
|
my $result = $lvalue->ge($rvalue); |
506
|
|
|
|
|
|
|
|
507
|
|
|
|
|
|
|
# 0 |
508
|
|
|
|
|
|
|
|
509
|
|
|
|
|
|
|
=back |
510
|
|
|
|
|
|
|
|
511
|
|
|
|
|
|
|
=over 4 |
512
|
|
|
|
|
|
|
|
513
|
|
|
|
|
|
|
=item ge example 5 |
514
|
|
|
|
|
|
|
|
515
|
|
|
|
|
|
|
package main; |
516
|
|
|
|
|
|
|
|
517
|
|
|
|
|
|
|
use Venus::Float; |
518
|
|
|
|
|
|
|
use Venus::Number; |
519
|
|
|
|
|
|
|
|
520
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
521
|
|
|
|
|
|
|
my $rvalue = Venus::Number->new; |
522
|
|
|
|
|
|
|
|
523
|
|
|
|
|
|
|
my $result = $lvalue->ge($rvalue); |
524
|
|
|
|
|
|
|
|
525
|
|
|
|
|
|
|
# 1 |
526
|
|
|
|
|
|
|
|
527
|
|
|
|
|
|
|
=back |
528
|
|
|
|
|
|
|
|
529
|
|
|
|
|
|
|
=over 4 |
530
|
|
|
|
|
|
|
|
531
|
|
|
|
|
|
|
=item ge example 6 |
532
|
|
|
|
|
|
|
|
533
|
|
|
|
|
|
|
package main; |
534
|
|
|
|
|
|
|
|
535
|
|
|
|
|
|
|
use Venus::Float; |
536
|
|
|
|
|
|
|
use Venus::Regexp; |
537
|
|
|
|
|
|
|
|
538
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
539
|
|
|
|
|
|
|
my $rvalue = Venus::Regexp->new; |
540
|
|
|
|
|
|
|
|
541
|
|
|
|
|
|
|
my $result = $lvalue->ge($rvalue); |
542
|
|
|
|
|
|
|
|
543
|
|
|
|
|
|
|
# 0 |
544
|
|
|
|
|
|
|
|
545
|
|
|
|
|
|
|
=back |
546
|
|
|
|
|
|
|
|
547
|
|
|
|
|
|
|
=over 4 |
548
|
|
|
|
|
|
|
|
549
|
|
|
|
|
|
|
=item ge example 7 |
550
|
|
|
|
|
|
|
|
551
|
|
|
|
|
|
|
package main; |
552
|
|
|
|
|
|
|
|
553
|
|
|
|
|
|
|
use Venus::Float; |
554
|
|
|
|
|
|
|
use Venus::Scalar; |
555
|
|
|
|
|
|
|
|
556
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
557
|
|
|
|
|
|
|
my $rvalue = Venus::Scalar->new; |
558
|
|
|
|
|
|
|
|
559
|
|
|
|
|
|
|
my $result = $lvalue->ge($rvalue); |
560
|
|
|
|
|
|
|
|
561
|
|
|
|
|
|
|
# 0 |
562
|
|
|
|
|
|
|
|
563
|
|
|
|
|
|
|
=back |
564
|
|
|
|
|
|
|
|
565
|
|
|
|
|
|
|
=over 4 |
566
|
|
|
|
|
|
|
|
567
|
|
|
|
|
|
|
=item ge example 8 |
568
|
|
|
|
|
|
|
|
569
|
|
|
|
|
|
|
package main; |
570
|
|
|
|
|
|
|
|
571
|
|
|
|
|
|
|
use Venus::Float; |
572
|
|
|
|
|
|
|
use Venus::String; |
573
|
|
|
|
|
|
|
|
574
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
575
|
|
|
|
|
|
|
my $rvalue = Venus::String->new; |
576
|
|
|
|
|
|
|
|
577
|
|
|
|
|
|
|
my $result = $lvalue->ge($rvalue); |
578
|
|
|
|
|
|
|
|
579
|
|
|
|
|
|
|
# 1 |
580
|
|
|
|
|
|
|
|
581
|
|
|
|
|
|
|
=back |
582
|
|
|
|
|
|
|
|
583
|
|
|
|
|
|
|
=over 4 |
584
|
|
|
|
|
|
|
|
585
|
|
|
|
|
|
|
=item ge example 9 |
586
|
|
|
|
|
|
|
|
587
|
|
|
|
|
|
|
package main; |
588
|
|
|
|
|
|
|
|
589
|
|
|
|
|
|
|
use Venus::Float; |
590
|
|
|
|
|
|
|
use Venus::Undef; |
591
|
|
|
|
|
|
|
|
592
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
593
|
|
|
|
|
|
|
my $rvalue = Venus::Undef->new; |
594
|
|
|
|
|
|
|
|
595
|
|
|
|
|
|
|
my $result = $lvalue->ge($rvalue); |
596
|
|
|
|
|
|
|
|
597
|
|
|
|
|
|
|
# 1 |
598
|
|
|
|
|
|
|
|
599
|
|
|
|
|
|
|
=back |
600
|
|
|
|
|
|
|
|
601
|
|
|
|
|
|
|
=cut |
602
|
|
|
|
|
|
|
|
603
|
|
|
|
|
|
|
=head2 gele |
604
|
|
|
|
|
|
|
|
605
|
|
|
|
|
|
|
gele(any $arg1, any $arg2) (boolean) |
606
|
|
|
|
|
|
|
|
607
|
|
|
|
|
|
|
The gele method performs a I<"greater-than-or-equal-to"> operation on the 1st |
608
|
|
|
|
|
|
|
argument, and I<"lesser-than-or-equal-to"> operation on the 2nd argument. |
609
|
|
|
|
|
|
|
|
610
|
|
|
|
|
|
|
I> |
611
|
|
|
|
|
|
|
|
612
|
|
|
|
|
|
|
=over 4 |
613
|
|
|
|
|
|
|
|
614
|
|
|
|
|
|
|
=item gele example 1 |
615
|
|
|
|
|
|
|
|
616
|
|
|
|
|
|
|
package main; |
617
|
|
|
|
|
|
|
|
618
|
|
|
|
|
|
|
use Venus::Array; |
619
|
|
|
|
|
|
|
use Venus::Float; |
620
|
|
|
|
|
|
|
|
621
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
622
|
|
|
|
|
|
|
my $rvalue = Venus::Array->new; |
623
|
|
|
|
|
|
|
|
624
|
|
|
|
|
|
|
my $result = $lvalue->gele($rvalue); |
625
|
|
|
|
|
|
|
|
626
|
|
|
|
|
|
|
# 0 |
627
|
|
|
|
|
|
|
|
628
|
|
|
|
|
|
|
=back |
629
|
|
|
|
|
|
|
|
630
|
|
|
|
|
|
|
=over 4 |
631
|
|
|
|
|
|
|
|
632
|
|
|
|
|
|
|
=item gele example 2 |
633
|
|
|
|
|
|
|
|
634
|
|
|
|
|
|
|
package main; |
635
|
|
|
|
|
|
|
|
636
|
|
|
|
|
|
|
use Venus::Code; |
637
|
|
|
|
|
|
|
use Venus::Float; |
638
|
|
|
|
|
|
|
|
639
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
640
|
|
|
|
|
|
|
my $rvalue = Venus::Code->new; |
641
|
|
|
|
|
|
|
|
642
|
|
|
|
|
|
|
my $result = $lvalue->gele($rvalue); |
643
|
|
|
|
|
|
|
|
644
|
|
|
|
|
|
|
# 0 |
645
|
|
|
|
|
|
|
|
646
|
|
|
|
|
|
|
=back |
647
|
|
|
|
|
|
|
|
648
|
|
|
|
|
|
|
=over 4 |
649
|
|
|
|
|
|
|
|
650
|
|
|
|
|
|
|
=item gele example 3 |
651
|
|
|
|
|
|
|
|
652
|
|
|
|
|
|
|
package main; |
653
|
|
|
|
|
|
|
|
654
|
|
|
|
|
|
|
use Venus::Float; |
655
|
|
|
|
|
|
|
|
656
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
657
|
|
|
|
|
|
|
my $rvalue = Venus::Float->new; |
658
|
|
|
|
|
|
|
|
659
|
|
|
|
|
|
|
my $result = $lvalue->gele($rvalue); |
660
|
|
|
|
|
|
|
|
661
|
|
|
|
|
|
|
# 1 |
662
|
|
|
|
|
|
|
|
663
|
|
|
|
|
|
|
=back |
664
|
|
|
|
|
|
|
|
665
|
|
|
|
|
|
|
=over 4 |
666
|
|
|
|
|
|
|
|
667
|
|
|
|
|
|
|
=item gele example 4 |
668
|
|
|
|
|
|
|
|
669
|
|
|
|
|
|
|
package main; |
670
|
|
|
|
|
|
|
|
671
|
|
|
|
|
|
|
use Venus::Float; |
672
|
|
|
|
|
|
|
use Venus::Hash; |
673
|
|
|
|
|
|
|
|
674
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
675
|
|
|
|
|
|
|
my $rvalue = Venus::Hash->new; |
676
|
|
|
|
|
|
|
|
677
|
|
|
|
|
|
|
my $result = $lvalue->gele($rvalue); |
678
|
|
|
|
|
|
|
|
679
|
|
|
|
|
|
|
# 0 |
680
|
|
|
|
|
|
|
|
681
|
|
|
|
|
|
|
=back |
682
|
|
|
|
|
|
|
|
683
|
|
|
|
|
|
|
=over 4 |
684
|
|
|
|
|
|
|
|
685
|
|
|
|
|
|
|
=item gele example 5 |
686
|
|
|
|
|
|
|
|
687
|
|
|
|
|
|
|
package main; |
688
|
|
|
|
|
|
|
|
689
|
|
|
|
|
|
|
use Venus::Float; |
690
|
|
|
|
|
|
|
use Venus::Number; |
691
|
|
|
|
|
|
|
|
692
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
693
|
|
|
|
|
|
|
my $rvalue = Venus::Number->new; |
694
|
|
|
|
|
|
|
|
695
|
|
|
|
|
|
|
my $result = $lvalue->gele($rvalue); |
696
|
|
|
|
|
|
|
|
697
|
|
|
|
|
|
|
# 1 |
698
|
|
|
|
|
|
|
|
699
|
|
|
|
|
|
|
=back |
700
|
|
|
|
|
|
|
|
701
|
|
|
|
|
|
|
=over 4 |
702
|
|
|
|
|
|
|
|
703
|
|
|
|
|
|
|
=item gele example 6 |
704
|
|
|
|
|
|
|
|
705
|
|
|
|
|
|
|
package main; |
706
|
|
|
|
|
|
|
|
707
|
|
|
|
|
|
|
use Venus::Float; |
708
|
|
|
|
|
|
|
use Venus::Regexp; |
709
|
|
|
|
|
|
|
|
710
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
711
|
|
|
|
|
|
|
my $rvalue = Venus::Regexp->new; |
712
|
|
|
|
|
|
|
|
713
|
|
|
|
|
|
|
my $result = $lvalue->gele($rvalue); |
714
|
|
|
|
|
|
|
|
715
|
|
|
|
|
|
|
# 0 |
716
|
|
|
|
|
|
|
|
717
|
|
|
|
|
|
|
=back |
718
|
|
|
|
|
|
|
|
719
|
|
|
|
|
|
|
=over 4 |
720
|
|
|
|
|
|
|
|
721
|
|
|
|
|
|
|
=item gele example 7 |
722
|
|
|
|
|
|
|
|
723
|
|
|
|
|
|
|
package main; |
724
|
|
|
|
|
|
|
|
725
|
|
|
|
|
|
|
use Venus::Float; |
726
|
|
|
|
|
|
|
use Venus::Scalar; |
727
|
|
|
|
|
|
|
|
728
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
729
|
|
|
|
|
|
|
my $rvalue = Venus::Scalar->new; |
730
|
|
|
|
|
|
|
|
731
|
|
|
|
|
|
|
my $result = $lvalue->gele($rvalue); |
732
|
|
|
|
|
|
|
|
733
|
|
|
|
|
|
|
# 0 |
734
|
|
|
|
|
|
|
|
735
|
|
|
|
|
|
|
=back |
736
|
|
|
|
|
|
|
|
737
|
|
|
|
|
|
|
=over 4 |
738
|
|
|
|
|
|
|
|
739
|
|
|
|
|
|
|
=item gele example 8 |
740
|
|
|
|
|
|
|
|
741
|
|
|
|
|
|
|
package main; |
742
|
|
|
|
|
|
|
|
743
|
|
|
|
|
|
|
use Venus::Float; |
744
|
|
|
|
|
|
|
use Venus::String; |
745
|
|
|
|
|
|
|
|
746
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
747
|
|
|
|
|
|
|
my $rvalue = Venus::String->new; |
748
|
|
|
|
|
|
|
|
749
|
|
|
|
|
|
|
my $result = $lvalue->gele($rvalue); |
750
|
|
|
|
|
|
|
|
751
|
|
|
|
|
|
|
# 1 |
752
|
|
|
|
|
|
|
|
753
|
|
|
|
|
|
|
=back |
754
|
|
|
|
|
|
|
|
755
|
|
|
|
|
|
|
=over 4 |
756
|
|
|
|
|
|
|
|
757
|
|
|
|
|
|
|
=item gele example 9 |
758
|
|
|
|
|
|
|
|
759
|
|
|
|
|
|
|
package main; |
760
|
|
|
|
|
|
|
|
761
|
|
|
|
|
|
|
use Venus::Float; |
762
|
|
|
|
|
|
|
use Venus::Undef; |
763
|
|
|
|
|
|
|
|
764
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
765
|
|
|
|
|
|
|
my $rvalue = Venus::Undef->new; |
766
|
|
|
|
|
|
|
|
767
|
|
|
|
|
|
|
my $result = $lvalue->gele($rvalue); |
768
|
|
|
|
|
|
|
|
769
|
|
|
|
|
|
|
# 1 |
770
|
|
|
|
|
|
|
|
771
|
|
|
|
|
|
|
=back |
772
|
|
|
|
|
|
|
|
773
|
|
|
|
|
|
|
=cut |
774
|
|
|
|
|
|
|
|
775
|
|
|
|
|
|
|
=head2 gt |
776
|
|
|
|
|
|
|
|
777
|
|
|
|
|
|
|
gt(any $arg) (boolean) |
778
|
|
|
|
|
|
|
|
779
|
|
|
|
|
|
|
The gt method performs a I<"greater-than"> operation using the argument provided. |
780
|
|
|
|
|
|
|
|
781
|
|
|
|
|
|
|
I> |
782
|
|
|
|
|
|
|
|
783
|
|
|
|
|
|
|
=over 4 |
784
|
|
|
|
|
|
|
|
785
|
|
|
|
|
|
|
=item gt example 1 |
786
|
|
|
|
|
|
|
|
787
|
|
|
|
|
|
|
package main; |
788
|
|
|
|
|
|
|
|
789
|
|
|
|
|
|
|
use Venus::Array; |
790
|
|
|
|
|
|
|
use Venus::Float; |
791
|
|
|
|
|
|
|
|
792
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
793
|
|
|
|
|
|
|
my $rvalue = Venus::Array->new; |
794
|
|
|
|
|
|
|
|
795
|
|
|
|
|
|
|
my $result = $lvalue->gt($rvalue); |
796
|
|
|
|
|
|
|
|
797
|
|
|
|
|
|
|
# 0 |
798
|
|
|
|
|
|
|
|
799
|
|
|
|
|
|
|
=back |
800
|
|
|
|
|
|
|
|
801
|
|
|
|
|
|
|
=over 4 |
802
|
|
|
|
|
|
|
|
803
|
|
|
|
|
|
|
=item gt example 2 |
804
|
|
|
|
|
|
|
|
805
|
|
|
|
|
|
|
package main; |
806
|
|
|
|
|
|
|
|
807
|
|
|
|
|
|
|
use Venus::Code; |
808
|
|
|
|
|
|
|
use Venus::Float; |
809
|
|
|
|
|
|
|
|
810
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
811
|
|
|
|
|
|
|
my $rvalue = Venus::Code->new; |
812
|
|
|
|
|
|
|
|
813
|
|
|
|
|
|
|
my $result = $lvalue->gt($rvalue); |
814
|
|
|
|
|
|
|
|
815
|
|
|
|
|
|
|
# 0 |
816
|
|
|
|
|
|
|
|
817
|
|
|
|
|
|
|
=back |
818
|
|
|
|
|
|
|
|
819
|
|
|
|
|
|
|
=over 4 |
820
|
|
|
|
|
|
|
|
821
|
|
|
|
|
|
|
=item gt example 3 |
822
|
|
|
|
|
|
|
|
823
|
|
|
|
|
|
|
package main; |
824
|
|
|
|
|
|
|
|
825
|
|
|
|
|
|
|
use Venus::Float; |
826
|
|
|
|
|
|
|
|
827
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
828
|
|
|
|
|
|
|
my $rvalue = Venus::Float->new; |
829
|
|
|
|
|
|
|
|
830
|
|
|
|
|
|
|
my $result = $lvalue->gt($rvalue); |
831
|
|
|
|
|
|
|
|
832
|
|
|
|
|
|
|
# 0 |
833
|
|
|
|
|
|
|
|
834
|
|
|
|
|
|
|
=back |
835
|
|
|
|
|
|
|
|
836
|
|
|
|
|
|
|
=over 4 |
837
|
|
|
|
|
|
|
|
838
|
|
|
|
|
|
|
=item gt example 4 |
839
|
|
|
|
|
|
|
|
840
|
|
|
|
|
|
|
package main; |
841
|
|
|
|
|
|
|
|
842
|
|
|
|
|
|
|
use Venus::Float; |
843
|
|
|
|
|
|
|
use Venus::Hash; |
844
|
|
|
|
|
|
|
|
845
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
846
|
|
|
|
|
|
|
my $rvalue = Venus::Hash->new; |
847
|
|
|
|
|
|
|
|
848
|
|
|
|
|
|
|
my $result = $lvalue->gt($rvalue); |
849
|
|
|
|
|
|
|
|
850
|
|
|
|
|
|
|
# 0 |
851
|
|
|
|
|
|
|
|
852
|
|
|
|
|
|
|
=back |
853
|
|
|
|
|
|
|
|
854
|
|
|
|
|
|
|
=over 4 |
855
|
|
|
|
|
|
|
|
856
|
|
|
|
|
|
|
=item gt example 5 |
857
|
|
|
|
|
|
|
|
858
|
|
|
|
|
|
|
package main; |
859
|
|
|
|
|
|
|
|
860
|
|
|
|
|
|
|
use Venus::Float; |
861
|
|
|
|
|
|
|
use Venus::Number; |
862
|
|
|
|
|
|
|
|
863
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
864
|
|
|
|
|
|
|
my $rvalue = Venus::Number->new; |
865
|
|
|
|
|
|
|
|
866
|
|
|
|
|
|
|
my $result = $lvalue->gt($rvalue); |
867
|
|
|
|
|
|
|
|
868
|
|
|
|
|
|
|
# 0 |
869
|
|
|
|
|
|
|
|
870
|
|
|
|
|
|
|
=back |
871
|
|
|
|
|
|
|
|
872
|
|
|
|
|
|
|
=over 4 |
873
|
|
|
|
|
|
|
|
874
|
|
|
|
|
|
|
=item gt example 6 |
875
|
|
|
|
|
|
|
|
876
|
|
|
|
|
|
|
package main; |
877
|
|
|
|
|
|
|
|
878
|
|
|
|
|
|
|
use Venus::Float; |
879
|
|
|
|
|
|
|
use Venus::Regexp; |
880
|
|
|
|
|
|
|
|
881
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
882
|
|
|
|
|
|
|
my $rvalue = Venus::Regexp->new; |
883
|
|
|
|
|
|
|
|
884
|
|
|
|
|
|
|
my $result = $lvalue->gt($rvalue); |
885
|
|
|
|
|
|
|
|
886
|
|
|
|
|
|
|
# 0 |
887
|
|
|
|
|
|
|
|
888
|
|
|
|
|
|
|
=back |
889
|
|
|
|
|
|
|
|
890
|
|
|
|
|
|
|
=over 4 |
891
|
|
|
|
|
|
|
|
892
|
|
|
|
|
|
|
=item gt example 7 |
893
|
|
|
|
|
|
|
|
894
|
|
|
|
|
|
|
package main; |
895
|
|
|
|
|
|
|
|
896
|
|
|
|
|
|
|
use Venus::Float; |
897
|
|
|
|
|
|
|
use Venus::Scalar; |
898
|
|
|
|
|
|
|
|
899
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
900
|
|
|
|
|
|
|
my $rvalue = Venus::Scalar->new; |
901
|
|
|
|
|
|
|
|
902
|
|
|
|
|
|
|
my $result = $lvalue->gt($rvalue); |
903
|
|
|
|
|
|
|
|
904
|
|
|
|
|
|
|
# 0 |
905
|
|
|
|
|
|
|
|
906
|
|
|
|
|
|
|
=back |
907
|
|
|
|
|
|
|
|
908
|
|
|
|
|
|
|
=over 4 |
909
|
|
|
|
|
|
|
|
910
|
|
|
|
|
|
|
=item gt example 8 |
911
|
|
|
|
|
|
|
|
912
|
|
|
|
|
|
|
package main; |
913
|
|
|
|
|
|
|
|
914
|
|
|
|
|
|
|
use Venus::Float; |
915
|
|
|
|
|
|
|
use Venus::String; |
916
|
|
|
|
|
|
|
|
917
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
918
|
|
|
|
|
|
|
my $rvalue = Venus::String->new; |
919
|
|
|
|
|
|
|
|
920
|
|
|
|
|
|
|
my $result = $lvalue->gt($rvalue); |
921
|
|
|
|
|
|
|
|
922
|
|
|
|
|
|
|
# 0 |
923
|
|
|
|
|
|
|
|
924
|
|
|
|
|
|
|
=back |
925
|
|
|
|
|
|
|
|
926
|
|
|
|
|
|
|
=over 4 |
927
|
|
|
|
|
|
|
|
928
|
|
|
|
|
|
|
=item gt example 9 |
929
|
|
|
|
|
|
|
|
930
|
|
|
|
|
|
|
package main; |
931
|
|
|
|
|
|
|
|
932
|
|
|
|
|
|
|
use Venus::Float; |
933
|
|
|
|
|
|
|
use Venus::Undef; |
934
|
|
|
|
|
|
|
|
935
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
936
|
|
|
|
|
|
|
my $rvalue = Venus::Undef->new; |
937
|
|
|
|
|
|
|
|
938
|
|
|
|
|
|
|
my $result = $lvalue->gt($rvalue); |
939
|
|
|
|
|
|
|
|
940
|
|
|
|
|
|
|
# 0 |
941
|
|
|
|
|
|
|
|
942
|
|
|
|
|
|
|
=back |
943
|
|
|
|
|
|
|
|
944
|
|
|
|
|
|
|
=cut |
945
|
|
|
|
|
|
|
|
946
|
|
|
|
|
|
|
=head2 gtlt |
947
|
|
|
|
|
|
|
|
948
|
|
|
|
|
|
|
gtlt(any $arg1, any $arg2) (boolean) |
949
|
|
|
|
|
|
|
|
950
|
|
|
|
|
|
|
The gtlt method performs a I<"greater-than"> operation on the 1st argument, and |
951
|
|
|
|
|
|
|
I<"lesser-than"> operation on the 2nd argument. |
952
|
|
|
|
|
|
|
|
953
|
|
|
|
|
|
|
I> |
954
|
|
|
|
|
|
|
|
955
|
|
|
|
|
|
|
=over 4 |
956
|
|
|
|
|
|
|
|
957
|
|
|
|
|
|
|
=item gtlt example 1 |
958
|
|
|
|
|
|
|
|
959
|
|
|
|
|
|
|
package main; |
960
|
|
|
|
|
|
|
|
961
|
|
|
|
|
|
|
use Venus::Array; |
962
|
|
|
|
|
|
|
use Venus::Float; |
963
|
|
|
|
|
|
|
|
964
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
965
|
|
|
|
|
|
|
my $rvalue = Venus::Array->new; |
966
|
|
|
|
|
|
|
|
967
|
|
|
|
|
|
|
my $result = $lvalue->gtlt($rvalue); |
968
|
|
|
|
|
|
|
|
969
|
|
|
|
|
|
|
# 0 |
970
|
|
|
|
|
|
|
|
971
|
|
|
|
|
|
|
=back |
972
|
|
|
|
|
|
|
|
973
|
|
|
|
|
|
|
=over 4 |
974
|
|
|
|
|
|
|
|
975
|
|
|
|
|
|
|
=item gtlt example 2 |
976
|
|
|
|
|
|
|
|
977
|
|
|
|
|
|
|
package main; |
978
|
|
|
|
|
|
|
|
979
|
|
|
|
|
|
|
use Venus::Code; |
980
|
|
|
|
|
|
|
use Venus::Float; |
981
|
|
|
|
|
|
|
|
982
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
983
|
|
|
|
|
|
|
my $rvalue = Venus::Code->new; |
984
|
|
|
|
|
|
|
|
985
|
|
|
|
|
|
|
my $result = $lvalue->gtlt($rvalue); |
986
|
|
|
|
|
|
|
|
987
|
|
|
|
|
|
|
# 0 |
988
|
|
|
|
|
|
|
|
989
|
|
|
|
|
|
|
=back |
990
|
|
|
|
|
|
|
|
991
|
|
|
|
|
|
|
=over 4 |
992
|
|
|
|
|
|
|
|
993
|
|
|
|
|
|
|
=item gtlt example 3 |
994
|
|
|
|
|
|
|
|
995
|
|
|
|
|
|
|
package main; |
996
|
|
|
|
|
|
|
|
997
|
|
|
|
|
|
|
use Venus::Float; |
998
|
|
|
|
|
|
|
|
999
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1000
|
|
|
|
|
|
|
my $rvalue = Venus::Float->new; |
1001
|
|
|
|
|
|
|
|
1002
|
|
|
|
|
|
|
my $result = $lvalue->gtlt($rvalue); |
1003
|
|
|
|
|
|
|
|
1004
|
|
|
|
|
|
|
# 0 |
1005
|
|
|
|
|
|
|
|
1006
|
|
|
|
|
|
|
=back |
1007
|
|
|
|
|
|
|
|
1008
|
|
|
|
|
|
|
=over 4 |
1009
|
|
|
|
|
|
|
|
1010
|
|
|
|
|
|
|
=item gtlt example 4 |
1011
|
|
|
|
|
|
|
|
1012
|
|
|
|
|
|
|
package main; |
1013
|
|
|
|
|
|
|
|
1014
|
|
|
|
|
|
|
use Venus::Float; |
1015
|
|
|
|
|
|
|
use Venus::Hash; |
1016
|
|
|
|
|
|
|
|
1017
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1018
|
|
|
|
|
|
|
my $rvalue = Venus::Hash->new; |
1019
|
|
|
|
|
|
|
|
1020
|
|
|
|
|
|
|
my $result = $lvalue->gtlt($rvalue); |
1021
|
|
|
|
|
|
|
|
1022
|
|
|
|
|
|
|
# 0 |
1023
|
|
|
|
|
|
|
|
1024
|
|
|
|
|
|
|
=back |
1025
|
|
|
|
|
|
|
|
1026
|
|
|
|
|
|
|
=over 4 |
1027
|
|
|
|
|
|
|
|
1028
|
|
|
|
|
|
|
=item gtlt example 5 |
1029
|
|
|
|
|
|
|
|
1030
|
|
|
|
|
|
|
package main; |
1031
|
|
|
|
|
|
|
|
1032
|
|
|
|
|
|
|
use Venus::Float; |
1033
|
|
|
|
|
|
|
use Venus::Number; |
1034
|
|
|
|
|
|
|
|
1035
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1036
|
|
|
|
|
|
|
my $rvalue = Venus::Number->new; |
1037
|
|
|
|
|
|
|
|
1038
|
|
|
|
|
|
|
my $result = $lvalue->gtlt($rvalue); |
1039
|
|
|
|
|
|
|
|
1040
|
|
|
|
|
|
|
# 0 |
1041
|
|
|
|
|
|
|
|
1042
|
|
|
|
|
|
|
=back |
1043
|
|
|
|
|
|
|
|
1044
|
|
|
|
|
|
|
=over 4 |
1045
|
|
|
|
|
|
|
|
1046
|
|
|
|
|
|
|
=item gtlt example 6 |
1047
|
|
|
|
|
|
|
|
1048
|
|
|
|
|
|
|
package main; |
1049
|
|
|
|
|
|
|
|
1050
|
|
|
|
|
|
|
use Venus::Float; |
1051
|
|
|
|
|
|
|
use Venus::Regexp; |
1052
|
|
|
|
|
|
|
|
1053
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1054
|
|
|
|
|
|
|
my $rvalue = Venus::Regexp->new; |
1055
|
|
|
|
|
|
|
|
1056
|
|
|
|
|
|
|
my $result = $lvalue->gtlt($rvalue); |
1057
|
|
|
|
|
|
|
|
1058
|
|
|
|
|
|
|
# 0 |
1059
|
|
|
|
|
|
|
|
1060
|
|
|
|
|
|
|
=back |
1061
|
|
|
|
|
|
|
|
1062
|
|
|
|
|
|
|
=over 4 |
1063
|
|
|
|
|
|
|
|
1064
|
|
|
|
|
|
|
=item gtlt example 7 |
1065
|
|
|
|
|
|
|
|
1066
|
|
|
|
|
|
|
package main; |
1067
|
|
|
|
|
|
|
|
1068
|
|
|
|
|
|
|
use Venus::Float; |
1069
|
|
|
|
|
|
|
use Venus::Scalar; |
1070
|
|
|
|
|
|
|
|
1071
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1072
|
|
|
|
|
|
|
my $rvalue = Venus::Scalar->new; |
1073
|
|
|
|
|
|
|
|
1074
|
|
|
|
|
|
|
my $result = $lvalue->gtlt($rvalue); |
1075
|
|
|
|
|
|
|
|
1076
|
|
|
|
|
|
|
# 0 |
1077
|
|
|
|
|
|
|
|
1078
|
|
|
|
|
|
|
=back |
1079
|
|
|
|
|
|
|
|
1080
|
|
|
|
|
|
|
=over 4 |
1081
|
|
|
|
|
|
|
|
1082
|
|
|
|
|
|
|
=item gtlt example 8 |
1083
|
|
|
|
|
|
|
|
1084
|
|
|
|
|
|
|
package main; |
1085
|
|
|
|
|
|
|
|
1086
|
|
|
|
|
|
|
use Venus::Float; |
1087
|
|
|
|
|
|
|
use Venus::String; |
1088
|
|
|
|
|
|
|
|
1089
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1090
|
|
|
|
|
|
|
my $rvalue = Venus::String->new; |
1091
|
|
|
|
|
|
|
|
1092
|
|
|
|
|
|
|
my $result = $lvalue->gtlt($rvalue); |
1093
|
|
|
|
|
|
|
|
1094
|
|
|
|
|
|
|
# 0 |
1095
|
|
|
|
|
|
|
|
1096
|
|
|
|
|
|
|
=back |
1097
|
|
|
|
|
|
|
|
1098
|
|
|
|
|
|
|
=over 4 |
1099
|
|
|
|
|
|
|
|
1100
|
|
|
|
|
|
|
=item gtlt example 9 |
1101
|
|
|
|
|
|
|
|
1102
|
|
|
|
|
|
|
package main; |
1103
|
|
|
|
|
|
|
|
1104
|
|
|
|
|
|
|
use Venus::Float; |
1105
|
|
|
|
|
|
|
use Venus::Undef; |
1106
|
|
|
|
|
|
|
|
1107
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1108
|
|
|
|
|
|
|
my $rvalue = Venus::Undef->new; |
1109
|
|
|
|
|
|
|
|
1110
|
|
|
|
|
|
|
my $result = $lvalue->gtlt($rvalue); |
1111
|
|
|
|
|
|
|
|
1112
|
|
|
|
|
|
|
# 0 |
1113
|
|
|
|
|
|
|
|
1114
|
|
|
|
|
|
|
=back |
1115
|
|
|
|
|
|
|
|
1116
|
|
|
|
|
|
|
=cut |
1117
|
|
|
|
|
|
|
|
1118
|
|
|
|
|
|
|
=head2 le |
1119
|
|
|
|
|
|
|
|
1120
|
|
|
|
|
|
|
le(any $arg) (boolean) |
1121
|
|
|
|
|
|
|
|
1122
|
|
|
|
|
|
|
The le method performs a I<"lesser-than-or-equal-to"> operation using the |
1123
|
|
|
|
|
|
|
argument provided. |
1124
|
|
|
|
|
|
|
|
1125
|
|
|
|
|
|
|
I> |
1126
|
|
|
|
|
|
|
|
1127
|
|
|
|
|
|
|
=over 4 |
1128
|
|
|
|
|
|
|
|
1129
|
|
|
|
|
|
|
=item le example 1 |
1130
|
|
|
|
|
|
|
|
1131
|
|
|
|
|
|
|
package main; |
1132
|
|
|
|
|
|
|
|
1133
|
|
|
|
|
|
|
use Venus::Array; |
1134
|
|
|
|
|
|
|
use Venus::Float; |
1135
|
|
|
|
|
|
|
|
1136
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1137
|
|
|
|
|
|
|
my $rvalue = Venus::Array->new; |
1138
|
|
|
|
|
|
|
|
1139
|
|
|
|
|
|
|
my $result = $lvalue->le($rvalue); |
1140
|
|
|
|
|
|
|
|
1141
|
|
|
|
|
|
|
# 1 |
1142
|
|
|
|
|
|
|
|
1143
|
|
|
|
|
|
|
=back |
1144
|
|
|
|
|
|
|
|
1145
|
|
|
|
|
|
|
=over 4 |
1146
|
|
|
|
|
|
|
|
1147
|
|
|
|
|
|
|
=item le example 2 |
1148
|
|
|
|
|
|
|
|
1149
|
|
|
|
|
|
|
package main; |
1150
|
|
|
|
|
|
|
|
1151
|
|
|
|
|
|
|
use Venus::Code; |
1152
|
|
|
|
|
|
|
use Venus::Float; |
1153
|
|
|
|
|
|
|
|
1154
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1155
|
|
|
|
|
|
|
my $rvalue = Venus::Code->new; |
1156
|
|
|
|
|
|
|
|
1157
|
|
|
|
|
|
|
my $result = $lvalue->le($rvalue); |
1158
|
|
|
|
|
|
|
|
1159
|
|
|
|
|
|
|
# 1 |
1160
|
|
|
|
|
|
|
|
1161
|
|
|
|
|
|
|
=back |
1162
|
|
|
|
|
|
|
|
1163
|
|
|
|
|
|
|
=over 4 |
1164
|
|
|
|
|
|
|
|
1165
|
|
|
|
|
|
|
=item le example 3 |
1166
|
|
|
|
|
|
|
|
1167
|
|
|
|
|
|
|
package main; |
1168
|
|
|
|
|
|
|
|
1169
|
|
|
|
|
|
|
use Venus::Float; |
1170
|
|
|
|
|
|
|
|
1171
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1172
|
|
|
|
|
|
|
my $rvalue = Venus::Float->new; |
1173
|
|
|
|
|
|
|
|
1174
|
|
|
|
|
|
|
my $result = $lvalue->le($rvalue); |
1175
|
|
|
|
|
|
|
|
1176
|
|
|
|
|
|
|
# 1 |
1177
|
|
|
|
|
|
|
|
1178
|
|
|
|
|
|
|
=back |
1179
|
|
|
|
|
|
|
|
1180
|
|
|
|
|
|
|
=over 4 |
1181
|
|
|
|
|
|
|
|
1182
|
|
|
|
|
|
|
=item le example 4 |
1183
|
|
|
|
|
|
|
|
1184
|
|
|
|
|
|
|
package main; |
1185
|
|
|
|
|
|
|
|
1186
|
|
|
|
|
|
|
use Venus::Float; |
1187
|
|
|
|
|
|
|
use Venus::Hash; |
1188
|
|
|
|
|
|
|
|
1189
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1190
|
|
|
|
|
|
|
my $rvalue = Venus::Hash->new; |
1191
|
|
|
|
|
|
|
|
1192
|
|
|
|
|
|
|
my $result = $lvalue->le($rvalue); |
1193
|
|
|
|
|
|
|
|
1194
|
|
|
|
|
|
|
# 1 |
1195
|
|
|
|
|
|
|
|
1196
|
|
|
|
|
|
|
=back |
1197
|
|
|
|
|
|
|
|
1198
|
|
|
|
|
|
|
=over 4 |
1199
|
|
|
|
|
|
|
|
1200
|
|
|
|
|
|
|
=item le example 5 |
1201
|
|
|
|
|
|
|
|
1202
|
|
|
|
|
|
|
package main; |
1203
|
|
|
|
|
|
|
|
1204
|
|
|
|
|
|
|
use Venus::Float; |
1205
|
|
|
|
|
|
|
use Venus::Number; |
1206
|
|
|
|
|
|
|
|
1207
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1208
|
|
|
|
|
|
|
my $rvalue = Venus::Number->new; |
1209
|
|
|
|
|
|
|
|
1210
|
|
|
|
|
|
|
my $result = $lvalue->le($rvalue); |
1211
|
|
|
|
|
|
|
|
1212
|
|
|
|
|
|
|
# 1 |
1213
|
|
|
|
|
|
|
|
1214
|
|
|
|
|
|
|
=back |
1215
|
|
|
|
|
|
|
|
1216
|
|
|
|
|
|
|
=over 4 |
1217
|
|
|
|
|
|
|
|
1218
|
|
|
|
|
|
|
=item le example 6 |
1219
|
|
|
|
|
|
|
|
1220
|
|
|
|
|
|
|
package main; |
1221
|
|
|
|
|
|
|
|
1222
|
|
|
|
|
|
|
use Venus::Float; |
1223
|
|
|
|
|
|
|
use Venus::Regexp; |
1224
|
|
|
|
|
|
|
|
1225
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1226
|
|
|
|
|
|
|
my $rvalue = Venus::Regexp->new; |
1227
|
|
|
|
|
|
|
|
1228
|
|
|
|
|
|
|
my $result = $lvalue->le($rvalue); |
1229
|
|
|
|
|
|
|
|
1230
|
|
|
|
|
|
|
# 1 |
1231
|
|
|
|
|
|
|
|
1232
|
|
|
|
|
|
|
=back |
1233
|
|
|
|
|
|
|
|
1234
|
|
|
|
|
|
|
=over 4 |
1235
|
|
|
|
|
|
|
|
1236
|
|
|
|
|
|
|
=item le example 7 |
1237
|
|
|
|
|
|
|
|
1238
|
|
|
|
|
|
|
package main; |
1239
|
|
|
|
|
|
|
|
1240
|
|
|
|
|
|
|
use Venus::Float; |
1241
|
|
|
|
|
|
|
use Venus::Scalar; |
1242
|
|
|
|
|
|
|
|
1243
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1244
|
|
|
|
|
|
|
my $rvalue = Venus::Scalar->new; |
1245
|
|
|
|
|
|
|
|
1246
|
|
|
|
|
|
|
my $result = $lvalue->le($rvalue); |
1247
|
|
|
|
|
|
|
|
1248
|
|
|
|
|
|
|
# 1 |
1249
|
|
|
|
|
|
|
|
1250
|
|
|
|
|
|
|
=back |
1251
|
|
|
|
|
|
|
|
1252
|
|
|
|
|
|
|
=over 4 |
1253
|
|
|
|
|
|
|
|
1254
|
|
|
|
|
|
|
=item le example 8 |
1255
|
|
|
|
|
|
|
|
1256
|
|
|
|
|
|
|
package main; |
1257
|
|
|
|
|
|
|
|
1258
|
|
|
|
|
|
|
use Venus::Float; |
1259
|
|
|
|
|
|
|
use Venus::String; |
1260
|
|
|
|
|
|
|
|
1261
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1262
|
|
|
|
|
|
|
my $rvalue = Venus::String->new; |
1263
|
|
|
|
|
|
|
|
1264
|
|
|
|
|
|
|
my $result = $lvalue->le($rvalue); |
1265
|
|
|
|
|
|
|
|
1266
|
|
|
|
|
|
|
# 1 |
1267
|
|
|
|
|
|
|
|
1268
|
|
|
|
|
|
|
=back |
1269
|
|
|
|
|
|
|
|
1270
|
|
|
|
|
|
|
=over 4 |
1271
|
|
|
|
|
|
|
|
1272
|
|
|
|
|
|
|
=item le example 9 |
1273
|
|
|
|
|
|
|
|
1274
|
|
|
|
|
|
|
package main; |
1275
|
|
|
|
|
|
|
|
1276
|
|
|
|
|
|
|
use Venus::Float; |
1277
|
|
|
|
|
|
|
use Venus::Undef; |
1278
|
|
|
|
|
|
|
|
1279
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1280
|
|
|
|
|
|
|
my $rvalue = Venus::Undef->new; |
1281
|
|
|
|
|
|
|
|
1282
|
|
|
|
|
|
|
my $result = $lvalue->le($rvalue); |
1283
|
|
|
|
|
|
|
|
1284
|
|
|
|
|
|
|
# 1 |
1285
|
|
|
|
|
|
|
|
1286
|
|
|
|
|
|
|
=back |
1287
|
|
|
|
|
|
|
|
1288
|
|
|
|
|
|
|
=cut |
1289
|
|
|
|
|
|
|
|
1290
|
|
|
|
|
|
|
=head2 lt |
1291
|
|
|
|
|
|
|
|
1292
|
|
|
|
|
|
|
lt(any $arg) (boolean) |
1293
|
|
|
|
|
|
|
|
1294
|
|
|
|
|
|
|
The lt method performs a I<"lesser-than"> operation using the argument provided. |
1295
|
|
|
|
|
|
|
|
1296
|
|
|
|
|
|
|
I> |
1297
|
|
|
|
|
|
|
|
1298
|
|
|
|
|
|
|
=over 4 |
1299
|
|
|
|
|
|
|
|
1300
|
|
|
|
|
|
|
=item lt example 1 |
1301
|
|
|
|
|
|
|
|
1302
|
|
|
|
|
|
|
package main; |
1303
|
|
|
|
|
|
|
|
1304
|
|
|
|
|
|
|
use Venus::Array; |
1305
|
|
|
|
|
|
|
use Venus::Float; |
1306
|
|
|
|
|
|
|
|
1307
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1308
|
|
|
|
|
|
|
my $rvalue = Venus::Array->new; |
1309
|
|
|
|
|
|
|
|
1310
|
|
|
|
|
|
|
my $result = $lvalue->lt($rvalue); |
1311
|
|
|
|
|
|
|
|
1312
|
|
|
|
|
|
|
# 1 |
1313
|
|
|
|
|
|
|
|
1314
|
|
|
|
|
|
|
=back |
1315
|
|
|
|
|
|
|
|
1316
|
|
|
|
|
|
|
=over 4 |
1317
|
|
|
|
|
|
|
|
1318
|
|
|
|
|
|
|
=item lt example 2 |
1319
|
|
|
|
|
|
|
|
1320
|
|
|
|
|
|
|
package main; |
1321
|
|
|
|
|
|
|
|
1322
|
|
|
|
|
|
|
use Venus::Code; |
1323
|
|
|
|
|
|
|
use Venus::Float; |
1324
|
|
|
|
|
|
|
|
1325
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1326
|
|
|
|
|
|
|
my $rvalue = Venus::Code->new; |
1327
|
|
|
|
|
|
|
|
1328
|
|
|
|
|
|
|
my $result = $lvalue->lt($rvalue); |
1329
|
|
|
|
|
|
|
|
1330
|
|
|
|
|
|
|
# 1 |
1331
|
|
|
|
|
|
|
|
1332
|
|
|
|
|
|
|
=back |
1333
|
|
|
|
|
|
|
|
1334
|
|
|
|
|
|
|
=over 4 |
1335
|
|
|
|
|
|
|
|
1336
|
|
|
|
|
|
|
=item lt example 3 |
1337
|
|
|
|
|
|
|
|
1338
|
|
|
|
|
|
|
package main; |
1339
|
|
|
|
|
|
|
|
1340
|
|
|
|
|
|
|
use Venus::Float; |
1341
|
|
|
|
|
|
|
|
1342
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1343
|
|
|
|
|
|
|
my $rvalue = Venus::Float->new; |
1344
|
|
|
|
|
|
|
|
1345
|
|
|
|
|
|
|
my $result = $lvalue->lt($rvalue); |
1346
|
|
|
|
|
|
|
|
1347
|
|
|
|
|
|
|
# 0 |
1348
|
|
|
|
|
|
|
|
1349
|
|
|
|
|
|
|
=back |
1350
|
|
|
|
|
|
|
|
1351
|
|
|
|
|
|
|
=over 4 |
1352
|
|
|
|
|
|
|
|
1353
|
|
|
|
|
|
|
=item lt example 4 |
1354
|
|
|
|
|
|
|
|
1355
|
|
|
|
|
|
|
package main; |
1356
|
|
|
|
|
|
|
|
1357
|
|
|
|
|
|
|
use Venus::Float; |
1358
|
|
|
|
|
|
|
use Venus::Hash; |
1359
|
|
|
|
|
|
|
|
1360
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1361
|
|
|
|
|
|
|
my $rvalue = Venus::Hash->new; |
1362
|
|
|
|
|
|
|
|
1363
|
|
|
|
|
|
|
my $result = $lvalue->lt($rvalue); |
1364
|
|
|
|
|
|
|
|
1365
|
|
|
|
|
|
|
# 1 |
1366
|
|
|
|
|
|
|
|
1367
|
|
|
|
|
|
|
=back |
1368
|
|
|
|
|
|
|
|
1369
|
|
|
|
|
|
|
=over 4 |
1370
|
|
|
|
|
|
|
|
1371
|
|
|
|
|
|
|
=item lt example 5 |
1372
|
|
|
|
|
|
|
|
1373
|
|
|
|
|
|
|
package main; |
1374
|
|
|
|
|
|
|
|
1375
|
|
|
|
|
|
|
use Venus::Float; |
1376
|
|
|
|
|
|
|
use Venus::Number; |
1377
|
|
|
|
|
|
|
|
1378
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1379
|
|
|
|
|
|
|
my $rvalue = Venus::Number->new; |
1380
|
|
|
|
|
|
|
|
1381
|
|
|
|
|
|
|
my $result = $lvalue->lt($rvalue); |
1382
|
|
|
|
|
|
|
|
1383
|
|
|
|
|
|
|
# 0 |
1384
|
|
|
|
|
|
|
|
1385
|
|
|
|
|
|
|
=back |
1386
|
|
|
|
|
|
|
|
1387
|
|
|
|
|
|
|
=over 4 |
1388
|
|
|
|
|
|
|
|
1389
|
|
|
|
|
|
|
=item lt example 6 |
1390
|
|
|
|
|
|
|
|
1391
|
|
|
|
|
|
|
package main; |
1392
|
|
|
|
|
|
|
|
1393
|
|
|
|
|
|
|
use Venus::Float; |
1394
|
|
|
|
|
|
|
use Venus::Regexp; |
1395
|
|
|
|
|
|
|
|
1396
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1397
|
|
|
|
|
|
|
my $rvalue = Venus::Regexp->new; |
1398
|
|
|
|
|
|
|
|
1399
|
|
|
|
|
|
|
my $result = $lvalue->lt($rvalue); |
1400
|
|
|
|
|
|
|
|
1401
|
|
|
|
|
|
|
# 1 |
1402
|
|
|
|
|
|
|
|
1403
|
|
|
|
|
|
|
=back |
1404
|
|
|
|
|
|
|
|
1405
|
|
|
|
|
|
|
=over 4 |
1406
|
|
|
|
|
|
|
|
1407
|
|
|
|
|
|
|
=item lt example 7 |
1408
|
|
|
|
|
|
|
|
1409
|
|
|
|
|
|
|
package main; |
1410
|
|
|
|
|
|
|
|
1411
|
|
|
|
|
|
|
use Venus::Float; |
1412
|
|
|
|
|
|
|
use Venus::Scalar; |
1413
|
|
|
|
|
|
|
|
1414
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1415
|
|
|
|
|
|
|
my $rvalue = Venus::Scalar->new; |
1416
|
|
|
|
|
|
|
|
1417
|
|
|
|
|
|
|
my $result = $lvalue->lt($rvalue); |
1418
|
|
|
|
|
|
|
|
1419
|
|
|
|
|
|
|
# 1 |
1420
|
|
|
|
|
|
|
|
1421
|
|
|
|
|
|
|
=back |
1422
|
|
|
|
|
|
|
|
1423
|
|
|
|
|
|
|
=over 4 |
1424
|
|
|
|
|
|
|
|
1425
|
|
|
|
|
|
|
=item lt example 8 |
1426
|
|
|
|
|
|
|
|
1427
|
|
|
|
|
|
|
package main; |
1428
|
|
|
|
|
|
|
|
1429
|
|
|
|
|
|
|
use Venus::Float; |
1430
|
|
|
|
|
|
|
use Venus::String; |
1431
|
|
|
|
|
|
|
|
1432
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1433
|
|
|
|
|
|
|
my $rvalue = Venus::String->new; |
1434
|
|
|
|
|
|
|
|
1435
|
|
|
|
|
|
|
my $result = $lvalue->lt($rvalue); |
1436
|
|
|
|
|
|
|
|
1437
|
|
|
|
|
|
|
# 0 |
1438
|
|
|
|
|
|
|
|
1439
|
|
|
|
|
|
|
=back |
1440
|
|
|
|
|
|
|
|
1441
|
|
|
|
|
|
|
=over 4 |
1442
|
|
|
|
|
|
|
|
1443
|
|
|
|
|
|
|
=item lt example 9 |
1444
|
|
|
|
|
|
|
|
1445
|
|
|
|
|
|
|
package main; |
1446
|
|
|
|
|
|
|
|
1447
|
|
|
|
|
|
|
use Venus::Float; |
1448
|
|
|
|
|
|
|
use Venus::Undef; |
1449
|
|
|
|
|
|
|
|
1450
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1451
|
|
|
|
|
|
|
my $rvalue = Venus::Undef->new; |
1452
|
|
|
|
|
|
|
|
1453
|
|
|
|
|
|
|
my $result = $lvalue->lt($rvalue); |
1454
|
|
|
|
|
|
|
|
1455
|
|
|
|
|
|
|
# 0 |
1456
|
|
|
|
|
|
|
|
1457
|
|
|
|
|
|
|
=back |
1458
|
|
|
|
|
|
|
|
1459
|
|
|
|
|
|
|
=cut |
1460
|
|
|
|
|
|
|
|
1461
|
|
|
|
|
|
|
=head2 ne |
1462
|
|
|
|
|
|
|
|
1463
|
|
|
|
|
|
|
ne(any $arg) (boolean) |
1464
|
|
|
|
|
|
|
|
1465
|
|
|
|
|
|
|
The ne method performs a I<"not-equal-to"> operation using the argument provided. |
1466
|
|
|
|
|
|
|
|
1467
|
|
|
|
|
|
|
I> |
1468
|
|
|
|
|
|
|
|
1469
|
|
|
|
|
|
|
=over 4 |
1470
|
|
|
|
|
|
|
|
1471
|
|
|
|
|
|
|
=item ne example 1 |
1472
|
|
|
|
|
|
|
|
1473
|
|
|
|
|
|
|
package main; |
1474
|
|
|
|
|
|
|
|
1475
|
|
|
|
|
|
|
use Venus::Array; |
1476
|
|
|
|
|
|
|
use Venus::Float; |
1477
|
|
|
|
|
|
|
|
1478
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1479
|
|
|
|
|
|
|
my $rvalue = Venus::Array->new; |
1480
|
|
|
|
|
|
|
|
1481
|
|
|
|
|
|
|
my $result = $lvalue->ne($rvalue); |
1482
|
|
|
|
|
|
|
|
1483
|
|
|
|
|
|
|
# 1 |
1484
|
|
|
|
|
|
|
|
1485
|
|
|
|
|
|
|
=back |
1486
|
|
|
|
|
|
|
|
1487
|
|
|
|
|
|
|
=over 4 |
1488
|
|
|
|
|
|
|
|
1489
|
|
|
|
|
|
|
=item ne example 2 |
1490
|
|
|
|
|
|
|
|
1491
|
|
|
|
|
|
|
package main; |
1492
|
|
|
|
|
|
|
|
1493
|
|
|
|
|
|
|
use Venus::Code; |
1494
|
|
|
|
|
|
|
use Venus::Float; |
1495
|
|
|
|
|
|
|
|
1496
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1497
|
|
|
|
|
|
|
my $rvalue = Venus::Code->new; |
1498
|
|
|
|
|
|
|
|
1499
|
|
|
|
|
|
|
my $result = $lvalue->ne($rvalue); |
1500
|
|
|
|
|
|
|
|
1501
|
|
|
|
|
|
|
# 1 |
1502
|
|
|
|
|
|
|
|
1503
|
|
|
|
|
|
|
=back |
1504
|
|
|
|
|
|
|
|
1505
|
|
|
|
|
|
|
=over 4 |
1506
|
|
|
|
|
|
|
|
1507
|
|
|
|
|
|
|
=item ne example 3 |
1508
|
|
|
|
|
|
|
|
1509
|
|
|
|
|
|
|
package main; |
1510
|
|
|
|
|
|
|
|
1511
|
|
|
|
|
|
|
use Venus::Float; |
1512
|
|
|
|
|
|
|
|
1513
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1514
|
|
|
|
|
|
|
my $rvalue = Venus::Float->new; |
1515
|
|
|
|
|
|
|
|
1516
|
|
|
|
|
|
|
my $result = $lvalue->ne($rvalue); |
1517
|
|
|
|
|
|
|
|
1518
|
|
|
|
|
|
|
# 0 |
1519
|
|
|
|
|
|
|
|
1520
|
|
|
|
|
|
|
=back |
1521
|
|
|
|
|
|
|
|
1522
|
|
|
|
|
|
|
=over 4 |
1523
|
|
|
|
|
|
|
|
1524
|
|
|
|
|
|
|
=item ne example 4 |
1525
|
|
|
|
|
|
|
|
1526
|
|
|
|
|
|
|
package main; |
1527
|
|
|
|
|
|
|
|
1528
|
|
|
|
|
|
|
use Venus::Float; |
1529
|
|
|
|
|
|
|
use Venus::Hash; |
1530
|
|
|
|
|
|
|
|
1531
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1532
|
|
|
|
|
|
|
my $rvalue = Venus::Hash->new; |
1533
|
|
|
|
|
|
|
|
1534
|
|
|
|
|
|
|
my $result = $lvalue->ne($rvalue); |
1535
|
|
|
|
|
|
|
|
1536
|
|
|
|
|
|
|
# 1 |
1537
|
|
|
|
|
|
|
|
1538
|
|
|
|
|
|
|
=back |
1539
|
|
|
|
|
|
|
|
1540
|
|
|
|
|
|
|
=over 4 |
1541
|
|
|
|
|
|
|
|
1542
|
|
|
|
|
|
|
=item ne example 5 |
1543
|
|
|
|
|
|
|
|
1544
|
|
|
|
|
|
|
package main; |
1545
|
|
|
|
|
|
|
|
1546
|
|
|
|
|
|
|
use Venus::Float; |
1547
|
|
|
|
|
|
|
use Venus::Number; |
1548
|
|
|
|
|
|
|
|
1549
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1550
|
|
|
|
|
|
|
my $rvalue = Venus::Number->new; |
1551
|
|
|
|
|
|
|
|
1552
|
|
|
|
|
|
|
my $result = $lvalue->ne($rvalue); |
1553
|
|
|
|
|
|
|
|
1554
|
|
|
|
|
|
|
# 0 |
1555
|
|
|
|
|
|
|
|
1556
|
|
|
|
|
|
|
=back |
1557
|
|
|
|
|
|
|
|
1558
|
|
|
|
|
|
|
=over 4 |
1559
|
|
|
|
|
|
|
|
1560
|
|
|
|
|
|
|
=item ne example 6 |
1561
|
|
|
|
|
|
|
|
1562
|
|
|
|
|
|
|
package main; |
1563
|
|
|
|
|
|
|
|
1564
|
|
|
|
|
|
|
use Venus::Float; |
1565
|
|
|
|
|
|
|
use Venus::Regexp; |
1566
|
|
|
|
|
|
|
|
1567
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1568
|
|
|
|
|
|
|
my $rvalue = Venus::Regexp->new; |
1569
|
|
|
|
|
|
|
|
1570
|
|
|
|
|
|
|
my $result = $lvalue->ne($rvalue); |
1571
|
|
|
|
|
|
|
|
1572
|
|
|
|
|
|
|
# 1 |
1573
|
|
|
|
|
|
|
|
1574
|
|
|
|
|
|
|
=back |
1575
|
|
|
|
|
|
|
|
1576
|
|
|
|
|
|
|
=over 4 |
1577
|
|
|
|
|
|
|
|
1578
|
|
|
|
|
|
|
=item ne example 7 |
1579
|
|
|
|
|
|
|
|
1580
|
|
|
|
|
|
|
package main; |
1581
|
|
|
|
|
|
|
|
1582
|
|
|
|
|
|
|
use Venus::Float; |
1583
|
|
|
|
|
|
|
use Venus::Scalar; |
1584
|
|
|
|
|
|
|
|
1585
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1586
|
|
|
|
|
|
|
my $rvalue = Venus::Scalar->new; |
1587
|
|
|
|
|
|
|
|
1588
|
|
|
|
|
|
|
my $result = $lvalue->ne($rvalue); |
1589
|
|
|
|
|
|
|
|
1590
|
|
|
|
|
|
|
# 1 |
1591
|
|
|
|
|
|
|
|
1592
|
|
|
|
|
|
|
=back |
1593
|
|
|
|
|
|
|
|
1594
|
|
|
|
|
|
|
=over 4 |
1595
|
|
|
|
|
|
|
|
1596
|
|
|
|
|
|
|
=item ne example 8 |
1597
|
|
|
|
|
|
|
|
1598
|
|
|
|
|
|
|
package main; |
1599
|
|
|
|
|
|
|
|
1600
|
|
|
|
|
|
|
use Venus::Float; |
1601
|
|
|
|
|
|
|
use Venus::String; |
1602
|
|
|
|
|
|
|
|
1603
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1604
|
|
|
|
|
|
|
my $rvalue = Venus::String->new; |
1605
|
|
|
|
|
|
|
|
1606
|
|
|
|
|
|
|
my $result = $lvalue->ne($rvalue); |
1607
|
|
|
|
|
|
|
|
1608
|
|
|
|
|
|
|
# 0 |
1609
|
|
|
|
|
|
|
|
1610
|
|
|
|
|
|
|
=back |
1611
|
|
|
|
|
|
|
|
1612
|
|
|
|
|
|
|
=over 4 |
1613
|
|
|
|
|
|
|
|
1614
|
|
|
|
|
|
|
=item ne example 9 |
1615
|
|
|
|
|
|
|
|
1616
|
|
|
|
|
|
|
package main; |
1617
|
|
|
|
|
|
|
|
1618
|
|
|
|
|
|
|
use Venus::Float; |
1619
|
|
|
|
|
|
|
use Venus::Undef; |
1620
|
|
|
|
|
|
|
|
1621
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1622
|
|
|
|
|
|
|
my $rvalue = Venus::Undef->new; |
1623
|
|
|
|
|
|
|
|
1624
|
|
|
|
|
|
|
my $result = $lvalue->ne($rvalue); |
1625
|
|
|
|
|
|
|
|
1626
|
|
|
|
|
|
|
# 0 |
1627
|
|
|
|
|
|
|
|
1628
|
|
|
|
|
|
|
=back |
1629
|
|
|
|
|
|
|
|
1630
|
|
|
|
|
|
|
=cut |
1631
|
|
|
|
|
|
|
|
1632
|
|
|
|
|
|
|
=head2 tv |
1633
|
|
|
|
|
|
|
|
1634
|
|
|
|
|
|
|
tv(any $arg) (boolean) |
1635
|
|
|
|
|
|
|
|
1636
|
|
|
|
|
|
|
The tv method performs a I<"type-and-value-equal-to"> operation using argument |
1637
|
|
|
|
|
|
|
provided. |
1638
|
|
|
|
|
|
|
|
1639
|
|
|
|
|
|
|
I> |
1640
|
|
|
|
|
|
|
|
1641
|
|
|
|
|
|
|
=over 4 |
1642
|
|
|
|
|
|
|
|
1643
|
|
|
|
|
|
|
=item tv example 1 |
1644
|
|
|
|
|
|
|
|
1645
|
|
|
|
|
|
|
package main; |
1646
|
|
|
|
|
|
|
|
1647
|
|
|
|
|
|
|
use Venus::Array; |
1648
|
|
|
|
|
|
|
use Venus::Float; |
1649
|
|
|
|
|
|
|
|
1650
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1651
|
|
|
|
|
|
|
my $rvalue = Venus::Array->new; |
1652
|
|
|
|
|
|
|
|
1653
|
|
|
|
|
|
|
my $result = $lvalue->tv($rvalue); |
1654
|
|
|
|
|
|
|
|
1655
|
|
|
|
|
|
|
# 0 |
1656
|
|
|
|
|
|
|
|
1657
|
|
|
|
|
|
|
=back |
1658
|
|
|
|
|
|
|
|
1659
|
|
|
|
|
|
|
=over 4 |
1660
|
|
|
|
|
|
|
|
1661
|
|
|
|
|
|
|
=item tv example 2 |
1662
|
|
|
|
|
|
|
|
1663
|
|
|
|
|
|
|
package main; |
1664
|
|
|
|
|
|
|
|
1665
|
|
|
|
|
|
|
use Venus::Code; |
1666
|
|
|
|
|
|
|
use Venus::Float; |
1667
|
|
|
|
|
|
|
|
1668
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1669
|
|
|
|
|
|
|
my $rvalue = Venus::Code->new; |
1670
|
|
|
|
|
|
|
|
1671
|
|
|
|
|
|
|
my $result = $lvalue->tv($rvalue); |
1672
|
|
|
|
|
|
|
|
1673
|
|
|
|
|
|
|
# 0 |
1674
|
|
|
|
|
|
|
|
1675
|
|
|
|
|
|
|
=back |
1676
|
|
|
|
|
|
|
|
1677
|
|
|
|
|
|
|
=over 4 |
1678
|
|
|
|
|
|
|
|
1679
|
|
|
|
|
|
|
=item tv example 3 |
1680
|
|
|
|
|
|
|
|
1681
|
|
|
|
|
|
|
package main; |
1682
|
|
|
|
|
|
|
|
1683
|
|
|
|
|
|
|
use Venus::Float; |
1684
|
|
|
|
|
|
|
|
1685
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1686
|
|
|
|
|
|
|
my $rvalue = Venus::Float->new; |
1687
|
|
|
|
|
|
|
|
1688
|
|
|
|
|
|
|
my $result = $lvalue->tv($rvalue); |
1689
|
|
|
|
|
|
|
|
1690
|
|
|
|
|
|
|
# 1 |
1691
|
|
|
|
|
|
|
|
1692
|
|
|
|
|
|
|
=back |
1693
|
|
|
|
|
|
|
|
1694
|
|
|
|
|
|
|
=over 4 |
1695
|
|
|
|
|
|
|
|
1696
|
|
|
|
|
|
|
=item tv example 4 |
1697
|
|
|
|
|
|
|
|
1698
|
|
|
|
|
|
|
package main; |
1699
|
|
|
|
|
|
|
|
1700
|
|
|
|
|
|
|
use Venus::Float; |
1701
|
|
|
|
|
|
|
use Venus::Hash; |
1702
|
|
|
|
|
|
|
|
1703
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1704
|
|
|
|
|
|
|
my $rvalue = Venus::Hash->new; |
1705
|
|
|
|
|
|
|
|
1706
|
|
|
|
|
|
|
my $result = $lvalue->tv($rvalue); |
1707
|
|
|
|
|
|
|
|
1708
|
|
|
|
|
|
|
# 0 |
1709
|
|
|
|
|
|
|
|
1710
|
|
|
|
|
|
|
=back |
1711
|
|
|
|
|
|
|
|
1712
|
|
|
|
|
|
|
=over 4 |
1713
|
|
|
|
|
|
|
|
1714
|
|
|
|
|
|
|
=item tv example 5 |
1715
|
|
|
|
|
|
|
|
1716
|
|
|
|
|
|
|
package main; |
1717
|
|
|
|
|
|
|
|
1718
|
|
|
|
|
|
|
use Venus::Float; |
1719
|
|
|
|
|
|
|
use Venus::Number; |
1720
|
|
|
|
|
|
|
|
1721
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1722
|
|
|
|
|
|
|
my $rvalue = Venus::Number->new; |
1723
|
|
|
|
|
|
|
|
1724
|
|
|
|
|
|
|
my $result = $lvalue->tv($rvalue); |
1725
|
|
|
|
|
|
|
|
1726
|
|
|
|
|
|
|
# 0 |
1727
|
|
|
|
|
|
|
|
1728
|
|
|
|
|
|
|
=back |
1729
|
|
|
|
|
|
|
|
1730
|
|
|
|
|
|
|
=over 4 |
1731
|
|
|
|
|
|
|
|
1732
|
|
|
|
|
|
|
=item tv example 6 |
1733
|
|
|
|
|
|
|
|
1734
|
|
|
|
|
|
|
package main; |
1735
|
|
|
|
|
|
|
|
1736
|
|
|
|
|
|
|
use Venus::Float; |
1737
|
|
|
|
|
|
|
use Venus::Regexp; |
1738
|
|
|
|
|
|
|
|
1739
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1740
|
|
|
|
|
|
|
my $rvalue = Venus::Regexp->new; |
1741
|
|
|
|
|
|
|
|
1742
|
|
|
|
|
|
|
my $result = $lvalue->tv($rvalue); |
1743
|
|
|
|
|
|
|
|
1744
|
|
|
|
|
|
|
# 0 |
1745
|
|
|
|
|
|
|
|
1746
|
|
|
|
|
|
|
=back |
1747
|
|
|
|
|
|
|
|
1748
|
|
|
|
|
|
|
=over 4 |
1749
|
|
|
|
|
|
|
|
1750
|
|
|
|
|
|
|
=item tv example 7 |
1751
|
|
|
|
|
|
|
|
1752
|
|
|
|
|
|
|
package main; |
1753
|
|
|
|
|
|
|
|
1754
|
|
|
|
|
|
|
use Venus::Float; |
1755
|
|
|
|
|
|
|
use Venus::Scalar; |
1756
|
|
|
|
|
|
|
|
1757
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1758
|
|
|
|
|
|
|
my $rvalue = Venus::Scalar->new; |
1759
|
|
|
|
|
|
|
|
1760
|
|
|
|
|
|
|
my $result = $lvalue->tv($rvalue); |
1761
|
|
|
|
|
|
|
|
1762
|
|
|
|
|
|
|
# 0 |
1763
|
|
|
|
|
|
|
|
1764
|
|
|
|
|
|
|
=back |
1765
|
|
|
|
|
|
|
|
1766
|
|
|
|
|
|
|
=over 4 |
1767
|
|
|
|
|
|
|
|
1768
|
|
|
|
|
|
|
=item tv example 8 |
1769
|
|
|
|
|
|
|
|
1770
|
|
|
|
|
|
|
package main; |
1771
|
|
|
|
|
|
|
|
1772
|
|
|
|
|
|
|
use Venus::Float; |
1773
|
|
|
|
|
|
|
use Venus::String; |
1774
|
|
|
|
|
|
|
|
1775
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1776
|
|
|
|
|
|
|
my $rvalue = Venus::String->new; |
1777
|
|
|
|
|
|
|
|
1778
|
|
|
|
|
|
|
my $result = $lvalue->tv($rvalue); |
1779
|
|
|
|
|
|
|
|
1780
|
|
|
|
|
|
|
# 0 |
1781
|
|
|
|
|
|
|
|
1782
|
|
|
|
|
|
|
=back |
1783
|
|
|
|
|
|
|
|
1784
|
|
|
|
|
|
|
=over 4 |
1785
|
|
|
|
|
|
|
|
1786
|
|
|
|
|
|
|
=item tv example 9 |
1787
|
|
|
|
|
|
|
|
1788
|
|
|
|
|
|
|
package main; |
1789
|
|
|
|
|
|
|
|
1790
|
|
|
|
|
|
|
use Venus::Float; |
1791
|
|
|
|
|
|
|
use Venus::Undef; |
1792
|
|
|
|
|
|
|
|
1793
|
|
|
|
|
|
|
my $lvalue = Venus::Float->new; |
1794
|
|
|
|
|
|
|
my $rvalue = Venus::Undef->new; |
1795
|
|
|
|
|
|
|
|
1796
|
|
|
|
|
|
|
my $result = $lvalue->tv($rvalue); |
1797
|
|
|
|
|
|
|
|
1798
|
|
|
|
|
|
|
# 0 |
1799
|
|
|
|
|
|
|
|
1800
|
|
|
|
|
|
|
=back |
1801
|
|
|
|
|
|
|
|
1802
|
|
|
|
|
|
|
=cut |
1803
|
|
|
|
|
|
|
|
1804
|
|
|
|
|
|
|
=head1 AUTHORS |
1805
|
|
|
|
|
|
|
|
1806
|
|
|
|
|
|
|
Awncorp, C |
1807
|
|
|
|
|
|
|
|
1808
|
|
|
|
|
|
|
=cut |
1809
|
|
|
|
|
|
|
|
1810
|
|
|
|
|
|
|
=head1 LICENSE |
1811
|
|
|
|
|
|
|
|
1812
|
|
|
|
|
|
|
Copyright (C) 2000, Awncorp, C. |
1813
|
|
|
|
|
|
|
|
1814
|
|
|
|
|
|
|
This program is free software, you can redistribute it and/or modify it under |
1815
|
|
|
|
|
|
|
the terms of the Apache license version 2.0. |
1816
|
|
|
|
|
|
|
|
1817
|
|
|
|
|
|
|
=cut |