Perl extension for processing a queue in parallel