Best practice for variables shared between processes?

Peter Edwards peter at
Mon Sep 20 17:43:20 BST 2010

On 20 September 2010 17:30, Roger Burton West <roger at> wrote:

> I wish to have two processes, a "producer" (which will create files) and
> a "consumer" (which will do something with them), running
> simultaneously. Ideally the producer would push filenames to a list as
> it finishes producing them, while the consumer would shift them off the
> same list (or loop-wait, if the list is empty).
> What is the accepted best practice for achieving this effect in modern
> idiomatic Perl?

Use a queue?
or for larger scale
ApacheMQ | RabbitMQ | Beanstalkd

Regards, Peter

More information about the mailing list