use strict; use warnings; my $generatorDir = './processing'; my @rprtname = 1 .. 9; for (@rprtname) { `perl $generatorDir/$_.pl`; }