in reply to complex iterator needed

In cases like this, I usually just shuffle those big constants into a complicated hash reference and stick it on the hard drive with Storable. If you are clever with your file naming, it's easy to have a method determine 'where was I last time?' and load up the appropriate variables to continue processing.