in reply to checking syntax on multiple files

Save this tiny script as perl-checkall...

#!/usr/bin/env perl for (@ARGV) { die "Not oll korrect!\n" if system $^X, '-c', $_; } exit(0);

Now, in Makefile...

install: foo bar perl-checkall $^ $(INSTALL) $^ /usr/local/bin
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'