Skip Menu |

This queue is for tickets about the DBM-Deep CPAN distribution.

Report information
The Basics
Id: 18530
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: DBM-Deep

People
Owner: RKINYON [...] cpan.org
Requestors: jmcnamara [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.982
Fixed in: (no value)



Subject: DBM::Deep doesn't isolate read/write from -l on the commandline
DBM::Deep returns incorrect values when -l is present on the commandline. Tested with DBM::Deep 0.982 and perl 5.8.6 on linux. See the attached test based on one of the tests in the distro. It probably requires $\ to be localised around read/writes to the DB. local $\ = undef; John. --
Subject: 29_commandline.t
#!/usr/bin/perl -l ## # DBM::Deep Test # # Test for interference from -l on the commandline. ## use strict; use Test::More tests => 4; use Test::Exception; use_ok( 'DBM::Deep' ); unlink "t/test.db"; my $db = DBM::Deep->new( "t/test.db" ); if ($db->error()) { die "ERROR: " . $db->error(); } ## # put/get key ## $db->{key1} = "value1"; is( $db->get("key1"), "value1", "get() works with hash assignment" ); is( $db->fetch("key1"), "value1", "... fetch() works with hash assignment" ); is( $db->{key1}, "value1", "... and hash-access also works" );
On Tue Apr 04 07:23:51 2006, JMCNAMARA wrote: Show quoted text
> > DBM::Deep returns incorrect values when -l is present on the commandline. > > Tested with DBM::Deep 0.982 and perl 5.8.6 on linux. > > See the attached test based on one of the tests in the distro. > > It probably requires $\ to be localised around read/writes to the DB. > > local $\ = undef; > > John.
Thanks for the bug report, John. I am currently working on a new file format for 1.00 and, as part of that effort, had already fixed this bug. This patch will NOT be backported to pre-1.00 because of the scope of the changes. I am hoping to be able to release 1.00 within the next 4-8 weeks. Thanks, Rob
Turns out that the bug was easier to solve than expected. The 0.983 release (just uploaded to CPAN) fixes this bug. Thanks again!