On Thu, 5 Jun 2003, Ying Liu wrote:

> I finally install the Heap module. But I run the example of the CPAN:
>  foreach $i ( 1..100 )
>    {
>        $elem = NumElem($i);
>        $heap->add($elem);
>    }
>
> It told me:
> Can't locate auto/Heap/add.al in @INC

In Heap-0.50, when use it to new a heap, actually, it will use the
Heap::Fibonacci to create a new one. So, I use:
"$heap = Heap::Fibonacci->new;" instead of "$heap = Heap->new;". It's OK.

And then it said "Can't locate auto/Heap/Fibonacci/extract_maximum.al,
it's because there is no 'extract_maximu' subrutine in this package, so I
use: extract_minimum instead, now it runs no problem.

Work in the morning is much better than work at night :)
Have a good one!

Ying


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to