Perl script for managing collections of batch jobs