return bless $self, $class;
}
+# This initializer is called from the various TIE* methods. new() calls tie(),
+# which allows for a single point of entry.
sub _init {
- ##
- # Setup $self and bless into this class.
- ##
my $class = shift;
my ($args) = @_;
base_offset => undef,
}, $class;
+ # Strip out the node-level parameters before passing $args to
+ # the root's constructor.
foreach my $param ( keys %$self ) {
next unless exists $args->{$param};
$self->{$param} = delete $args->{$param}
? $args->{root}
: DBM::Deep::_::Root->new( $args );
+ #XXX Right before this line, we have to set the physical parameters like
+ #XXX 2S vs. 4N vs. 8Q or max_buckets, etc.
$self->{engine}->setup_fh( $self );
return $self;
close(FILE);
SKIP: {
- skip "File format changed ... gah!", 5;
+ skip "File header and format changed ... gah!", 5;
open(FILE, "t/28_DATA.t");
my $db;