| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Enum::Declare::Common::Sort; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
136454
|
use 5.014; |
|
|
1
|
|
|
|
|
5
|
|
|
4
|
1
|
|
|
1
|
|
7
|
use strict; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
38
|
|
|
5
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
|
1
|
|
|
|
|
4
|
|
|
|
1
|
|
|
|
|
99
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
611
|
use Enum::Declare; |
|
|
1
|
|
|
|
|
16204
|
|
|
|
1
|
|
|
|
|
266
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
enum Direction :Str :Type :Export { |
|
10
|
|
|
|
|
|
|
Asc = "asc", |
|
11
|
|
|
|
|
|
|
Desc = "desc" |
|
12
|
|
|
|
|
|
|
}; |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
enum NullHandling :Str :Type :Export { |
|
15
|
|
|
|
|
|
|
NullsFirst = "nulls_first", |
|
16
|
|
|
|
|
|
|
NullsLast = "nulls_last" |
|
17
|
|
|
|
|
|
|
}; |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
Enum::Declare::Common::Sort - Sort direction and null handling enums |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
use Enum::Declare::Common::Sort; |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
say Asc; # "asc" |
|
30
|
|
|
|
|
|
|
say Desc; # "desc" |
|
31
|
|
|
|
|
|
|
say NullsFirst; # "nulls_first" |
|
32
|
|
|
|
|
|
|
say NullsLast; # "nulls_last" |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 ENUMS |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head2 Direction :Str :Export |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Asc="asc", Desc="desc". |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head2 NullHandling :Str :Export |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
NullsFirst="nulls_first", NullsLast="nulls_last". |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 AUTHOR |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
LNATION C<< >> |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Copyright 2026 LNATION. Artistic License 2.0. |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=cut |