sub _perl_file_compiles { my ($self, $file) = @_; if ( ! -f $file ) { $self->{test}->diag("$file could not be found") if $self->verbose(); return 0; } my @inc = ('blib/lib', @INC); my $taint = $self->_is_in_taint_mode($file); my $command = join(" ", (qq{"$^X"}, (map { qq{"-I$_"} } @inc), "-c$taint", $file)); if ( $self->verbose() ) { $self->{test}->diag("Executing: " . $command); } my ($compiles, $output) = $self->_run_command($command); if ( $output && (!defined($self->verbose()) || $self->verbose() != 0) ) { if ( !$compiles || $self->verbose() ) { for my $line ( @$output ) { $self->{test}->diag($line); } } } return $compiles; }