PITA-Scheme

 view release on metacpan or  search on metacpan

lib/PITA/Scheme/Perl/Discovery.pm  view on Meta::CPAN

		Carp::croak("The path $self->{path} does not exist");
	}
	unless ( -x $self->{path} ) {
		Carp::croak("The path $self->{path} is not executable");
	}

	# Check that it is indeed Perl
	my @output = `$self->{path} -v`;
	chomp @output;
	shift @output if $output[0] =~ /^\s*$/;
	unless ( $output[0] =~ /^This is perl/ ) {
		Carp::croak("The path $self->{path} is not Perl");
	}

	$self;
}

sub path {
	$_[0]->{path};
}



( run in 1.046 second using v1.01-cache-2.11-cpan-49f99fa48dc )