Data::RoundRobinShared - Serve data in a round robin manner, keeping the data in a shared memory so that it can be used by multiple processes and each get data in a roundrobin manner.
use Data::RoundRobinShared; my $sr = new Data::RoundRobinShared(key => 'DataForProcess1',data=> \@data, simple_check => 1); my $item = $sr->next;
This module allows you to serve data in a round robin manner shared between processes using a namespace key to identify each data-set.
Constructor, an arrayref containing the data, a string as key should be provided to construct a
Retrieve next value.
Release the shared memory.
Copyright 2010 by S Pradeep <firstname.lastname@example.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.