line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
684
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
2
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
51
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Data::Remember::DBM; |
5
|
|
|
|
|
|
|
{ |
6
|
|
|
|
|
|
|
$Data::Remember::DBM::VERSION = '0.140490'; |
7
|
|
|
|
|
|
|
} |
8
|
1
|
|
|
1
|
|
5
|
use base qw/ Data::Remember::Memory /; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
600
|
|
9
|
|
|
|
|
|
|
# ABSTRACT: a long-term memory brain plugin for Data::Remember |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
9
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
68
|
|
12
|
1
|
|
|
1
|
|
1001
|
use DBM::Deep; |
|
1
|
|
|
|
|
255520
|
|
|
1
|
|
|
|
|
9
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub new { |
16
|
1
|
|
|
1
|
1
|
2
|
my $class = shift; |
17
|
1
|
|
|
|
|
5
|
my %args = @_; |
18
|
|
|
|
|
|
|
|
19
|
1
|
50
|
|
|
|
5
|
croak 'You must specify a "file" to store the data in.' |
20
|
|
|
|
|
|
|
unless $args{file}; |
21
|
|
|
|
|
|
|
|
22
|
1
|
|
|
|
|
6
|
bless { brain => DBM::Deep->new( $args{file} ) }, $class; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub dbm { |
27
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
28
|
0
|
|
|
|
|
|
return $self->{brain}; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |