Skip Menu |

This queue is for tickets about the DB_File CPAN distribution.

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

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

Bug Information
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