in reply to Write to file

Take a look at Tie::File and see what you think. It allows you to treat a file as if it were an array and do the the file anything else you would do to an array of scalars.

Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg