use Test::More 0.94;


foreach my $program ( glob( "bin/*" ) ) {
	subtest $program => sub {
		my $output = `$^X -cT $program 2>&1`;
		like( $output, qr/syntax OK/, "$program compiles" );
		
		}
	}

done_testing();

use Test::More 0.94;
use Config;

my $perl = $Config{perlpath};

foreach my $program ( glob( "bin/*" ) ) {
	subtest $program => sub {
		my $output = `$perl -c $program 2>&1`;
		like( $output, qr/syntax OK/, "$program compiles" );
		
		}
	}

done_testing();

Use the perl from perlpath instead of $^X
Use the perl from perlpath instead of $^X