Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Core Dumping with Arraysby reptile (Monk) |
on Sep 08, 2000 at 19:50 UTC ( [id://31607]=note: print w/replies, xml ) | Need Help?? |
Running 5.00502 I got the same thing. I looked a little further into it out of curiosity. Dumper does an odd thing if it gets something that's not a reference: it makes it a reference and tries again. This is the problem right here. A slightly different approach:
Dumper is trying to take a reference to an undefined value here, and that's apparently not something the 5.005 series likes too much. I'm not sure at all what's causing the core dump. If I simply dump @comps the first time and exit, it prints a bunch of "Attempt to free unreferenced scalar" messages but doesn't core dump. If I remove the Dumper line too, it works just fine. This is a problem both with perl and with Data::Dumper, and I suspect a bug report should go to both. 5.005* loathes references to undef and Dumper makes references to undef.
In Section
Seekers of Perl Wisdom
|
|