in reply to loop inside system command
I'd recommend using the multi-argument variant of system().
system("C:\\execu", $firstbuild, @otherbuilds, 'file.c') and die "System command failed";
stephen
In Section
Seekers of Perl Wisdom