in reply to sh: line 1: ,: command not found

So for your machine ./sendsms means sh ./sendsms, then sh looks at the shebang and goes looking for /usr/bin/perl but fails to find it