my $binary = "/path/to/executable"; -x $binary or die "$binary not found"; #### -f or die "`$_' binary not found\n" for 'C:/path/to/executable';