Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DB_File CPAN distribution.

Report information
The Basics
Id:
1562
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
pmqs [...] cpan.org
Requestors:
os [...] cru.fr
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
1.805
Fixed in:
(no value)



Subject: Could not define 'compare' subroutine
Perl : 5.6.1 Linux RedHat 7.3 Error message (program died) : Key 'compare' not associated with a code reference at /xxx line xxx This corresponds to the following lines : use DB_File; $DB_BTREE->{compare} = '_compare_addresses'; I suspect it is related to the following entries of the Changelog : * added code to guard against calling the callbacks (compare, hash & prefix) recursively.
Show quoted text
> $DB_BTREE->{compare} = '_compare_addresses'; > > I suspect it is related to the following entries of the Changelog : > * added code to guard against calling the callbacks (compare, > hash & prefix) recursively.
'_compare_addresses' is not a code reference. It is a string. You want \&_compare_addresses


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.