use Test::More 0.94;
use Config;

diag(
	join "\n\t", "Parent \@INC:", @INC, ''
	);

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 Test::More 0.94;
use Config;

diag(
	join "\n\t", "Parent \@INC:", @INC, ''
	);

$ENV{PERL5LIB} = join $Config{path_sep}, @INC;
diag( "PERL5LIB: $ENV{PERL5LIB}" );

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

done_testing();

Set PERL5LIB to pass on @INC
Set PERL5LIB to pass on @INC

I don't need to do this I think, but we'll see.
Taking out -T might have done it.