| 1 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | package Data::Remember::DBM; | ||||||||||
| 5 | { | ||||||||||
| 6 | 1 | $Data::Remember::DBM::VERSION = '0.140490'; | |||||||||
| 7 | } | ||||||||||
| 8 | 1 | ▶ | use base qw/ Data::Remember::Memory /; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | # ABSTRACT: a long-term memory brain plugin for Data::Remember | ||||||||||
| 10 | |||||||||||
| 11 | 1 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 1 | ▶ | use DBM::Deep; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | |||||||||||
| 15 | 1 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 16 | 1 | my $class = shift; | |||||||||
| 17 | 1 | my %args = @_; | |||||||||
| 18 | |||||||||||
| 19 | croak 'You must specify a "file" to store the data in.' | ||||||||||
| 20 | 1 | ▶ | unless $args{file}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | |||||||||||
| 22 | 1 | bless { brain => DBM::Deep->new( $args{file} ) }, $class; | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | |||||||||||
| 26 | 0 | ▶ | sub dbm { | ||||||||
|
Subroutine
dbm: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 27 | 0 | my $self = shift; | |||||||||
| 28 | 0 | return $self->{brain}; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | |||||||||||
| 32 | 1 | 1; | |||||||||
| 33 | |||||||||||
| 34 | __END__ | ||||||||||