line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Heap::Elem::StrRev; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
25746
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
39
|
|
4
|
1
|
|
|
1
|
|
5
|
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
81
|
|
5
|
1
|
|
|
1
|
|
298
|
use Heap::Elem; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
150
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
require Exporter; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
@ISA = qw(Exporter Heap::Elem); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# No names exported. |
12
|
|
|
|
|
|
|
@EXPORT = ( ); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# Available for export: StrRElem (to allocate a new Heap::Elem::StrRev value) |
15
|
|
|
|
|
|
|
@EXPORT_OK = qw( StrRElem ); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
$VERSION = '0.80'; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub StrRElem { # exportable synonym for new |
21
|
0
|
|
|
0
|
0
|
|
Heap::Elem::StrRev->new(@_); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
# compare two StrR elems (reverse order) |
25
|
|
|
|
|
|
|
sub cmp { |
26
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
27
|
0
|
|
|
|
|
|
my $other = shift; |
28
|
0
|
|
|
|
|
|
return $_[1][0] cmp $_[0][0]; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
__END__ |