I'd like to take it a step further; Is it possible to write to a specified spot in a file, (not the beginning or end...the middle).
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