Skip Menu |

This queue is for tickets about the Heap CPAN distribution.

Report information
The Basics
Id: 3254
Status: new
Priority: 0/
Queue: Heap

People
Owner: Nobody in particular
Requestors: dmb [...] mrc-dunn.cam.ac.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.50
Fixed in: (no value)



Subject: $heap->(delete $x); $heap->(delete $x);
This is perl, v5.8.0 built for i386-linux-thread-multi(with 1 registered patch, see perl -V for more detail) Linux beagle.mrc-dunn.cam.ac.uk 2.4.20-19.9 #1 Tue Jul 15 17:03:30 EDT 2003 i686 athlon i386 GNU/Linux Hi, Deleting the same element from Heap::Fib twice causes an internal exit, Can't call method "cmp" on an undefined value at /usr/lib/perl5/site_perl/5.8.0/Heap/Fibonacci.pm line 383. I want to add an automatic 'reheap' to my get / set value sub in my Elem object, but the object may or may not be in the heap. A $heap->contains( $elem ); would be nice. Ta, Dan.
From: Dan
Is this ever read by anyone? Should I be the one fixing this? Thanks, Dan. [guest - Fri Aug 15 10:26:04 2003]: Show quoted text
> This is perl, v5.8.0 built for i386-linux-thread-multi(with 1 > registered patch, see perl -V for more detail) > > Linux beagle.mrc-dunn.cam.ac.uk 2.4.20-19.9 #1 Tue Jul 15 17:03:30 EDT > 2003 i686 athlon i386 GNU/Linux > > Hi, > > Deleting the same element from Heap::Fib twice causes an internal > exit, > > Can't call method "cmp" on an undefined value at > /usr/lib/perl5/site_perl/5.8.0/Heap/Fibonacci.pm line 383. > > I want to add an automatic 'reheap' to my get / set value sub > in my Elem object, but the object may or may not be in the heap. > > A > > $heap->contains( $elem ); > > would be nice. > > Ta, > Dan.