in reply to Tracking Lines Printed to a FileHandle
IO::ScalarArray / IO::Lines are fun.
You may need Text::Wrap as well, depending on your line lengths.