Binary package “libstring-bufferstack-perl” in ubuntu hirsute

framework for storing nested buffers

 String::BufferStack provides some functions to store data into nested
 buffers. By default, all of the buffers flow directly to the output method,
 but individual levels of the stack can apply filters, or store their output
 in a scalar reference.