Revision history for DBM::Deep.
-1.0002 Sep ?? ??:??:?? 2007 EDT
+1.0002 Sep 20 22:00:00 2007 EDT
+ - (This version is compatible with 1.0001)
- Expanded _throw_error() so that it provides better information.
(Thanks brian d foy!)
+ - Fixed how shift, unshift, and splice work when there are references
+ being moved. It now no longer dies.
+ - Added diag in t/17_import.t to note that the failing tests on blead
+ are due to Clone being broken, not DBM::Deep. The tests will still
+ fail because I don't want users to install something that's broken
+ and deal with those bug reports.
1.0001 Mar 12 16:15:00 2007 EDT
- (This version is compatible with 1.0000)
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 {
use strict;
use warnings;
-our $VERSION = q(1.0001);
+our $VERSION = q(1.0002);
use Scalar::Util ();
use strict;
use warnings;
-our $VERSION = q(1.0001);
+our $VERSION = q(1.0002);
use Fcntl qw( :DEFAULT :flock :seek );
use strict;
use warnings;
-our $VERSION = q(1.0001);
+our $VERSION = q(1.0002);
use base 'DBM::Deep';
}
{
+ diag "\nThere seems to be a bug in Clone on Perl 5.9+ that is causing\nthese tests to fail."
+ if $] >= 5.009;
+
my ($fh, $filename) = new_fh();
my $db = DBM::Deep->new({
file => $filename,