
Io::tiecombine is a module that can collect output in separate (but combinable) named "slots" (output buffers). it provides methods that tie scalars, references, file handles or callback functions to specific slots, making it possible to e.g. collect both text printed to a file handle and text appended to a scalar in the same place, without the printing or appending function knowing about the relationship or the name of the slot.