if (-x file.sh) [download]
For checking return code, see system.
In reply to Re: checking for existence of a file in perl by toolic in thread checking for existence of a file in perl by usrlocal