in reply to A Better Way
I can also recommend the excellent Tie::File which ties an array to a file. Make a change in the array, and that change is reflected in the file. Really very cool.
Alex / talexb / Toronto
"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds