in reply to How to debug a segfault?

Sounds like you are working on a Linux/Unix system. Personally I found the ddd visual debugger very handy. It is an excellent GNU freeware. You can download it here - http://www.gnu.org/software/ddd/. One particular neat feature is the data plotting, where you can double click on a structure to inspect its internals in nicely formatted tables. And I think it can track your segfault too.

You can invoke the debugger from the command-line -

ddd -perl script.pl

One concern is that when running your script in a debugger, the performance suffers quite a bit, so you may have to way longer.