Just to add, I don't really know what I'm doing with the debugger (though I am very familiar with the perl debugger) so I've left that terminal in the state it is. Let me know if I can do anything more useful with it.