http://www.perlmonks.org?node_id=630418


in reply to Pre-grow a string

Convert::Scalar has such a grow() function, and I suspect 'Packing and Unpacking C Structures' in perlpacktut will give you more info on quickly jumping to the desired offset while appending (I haven't read it in detail myself, but it mentions 'offsets').