in reply to Again on "can't use string as hash as HASH ref while "strict refs" in use"
The problem is with your understanding of the data structure and the value of $heap. If you output the data structure you actually have in $heap, maybe that will show where the error is. Use Data::Dumper to look at the data structure:
use Data::Dumper; warn Dumper $heap;
You can help us help you better by providing a short, self-contained example that fails. Also, telling us the exact error message and the exact error location in your code provides us with more hints. There is a reason why Perl outputs them, but you chose to hide them from us.
|
|---|