my $binary = "/path/to/executable"; -x $binary or die "$binary not found";