in reply to Out of Memory Error -- Possible Leak?
When processing ginormous data sets, try to use while instead of for.
for wants to load the entire dataset into memory but while wants to load each datum as you request it.
In Section
Seekers of Perl Wisdom