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.