Let's back up to this: "store my data to disk rather than memory". OK, so let's say that you
do successfully store your data to disk. Now what? I mean, how do you use it in your program? You have
to read it back into memory. Now you have a new problem -- which parts to pull from the file into memory
and which parts to move from memory into the file. Tie::Cache::LRU might make this task easier,
however.
Sounds to me like you are trying to do too much. Try filtering the results down, or use some sort of
pagination scheme to only deal with a small window of the entire set, instead of the entire set. As far
as storing "objects" ... look into Serialization: Freeze::Thaw and YAML come to mind.