in reply to Array undefining istelf?

The first thing I would do is step through it with a debugger to see where it was holding and failing. My favorite debugger is a Perl/Tk based one that can be found here.

Good luck!

There is no emoticon for what I'm feeling now.