# make sure $path is a plain file (not a dir or other type), is readable, and is executable if (-f $path && -r $path && -x $path)