use strict;
use warnings;
-our $VERSION = q(1.0001);
+our $VERSION = q(1.0002);
# This is to allow DBM::Deep::Array to handle negative indices on
# its own. Otherwise, Perl would intercept the call to negative
return $length;
}
+# XXX This really needs to be something more direct within the file, not a
+# fetch and re-store. -RobK, 2007-09-20
sub _move_value {
my $self = shift;
my ($old_key, $new_key) = @_;
my $val = $self->FETCH( $old_key );
- if ( eval { $val->isa( 'DBM::Deep::Hash' ) } ) {
+ if ( eval { local $SIG{'__DIE__'}; $val->isa( 'DBM::Deep::Hash' ) } ) {
$self->STORE( $new_key, { %$val } );
}
- elsif ( eval { $val->isa( 'DBM::Deep::Array' ) } ) {
+ elsif ( eval { local $SIG{'__DIE__'}; $val->isa( 'DBM::Deep::Array' ) } ) {
$self->STORE( $new_key, [ @$val ] );
}
else {