in reply to automating install of perl modules

In a previous incarnation, I persuaded make to do almost the same thing as you require - AFAIR, it was along the lines of ...
MODULES = module-a-1.0 module-b-1.1 all: perl -e '\ foreach ((qw/$(MODULES)/)) {\ chdir($$_) or die("chdir($$_) failed - $$!");\ system("perl Makefile.PL");\ system("$(MAKE) test install");\ }\ '

HTH

At last, a user level that best describes my experience :-))