Stack::Persistent is a Perl module that implements a named, persistent stack for usage by programs that need to recover the items on a stack when something unexpected happens. The stack is LIFO based.
This module can be used as follows:
use Stack::Persistent;
$stack = Stack::Persistent->new();
$stack->push('default', 'some really cool stuff');
printf("There are %s items on the stack\n", $stack->items('default'));
printf("My data is: %s\n", $stack->pop('default'));
The main purpose of this module was to have a persistent stack that could survive the restart of a program. Multiple, named stacks can be maintained.
Product's homepage
Requirements:
· Perl