in reply to This runs WAY too slow
You have too much code for us to look at. That's what profilers are for. See Devel::NYTprof and friends. Once you profile your code, you can then post a reasonably-sized snippet that's running slowly and get advice on it.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|