if ( -e $file && -r _ && -x _) { # $file exists and is both readable and executable ... }