I was sent a perl script over mail and asked to run it .I placed it on my local drive as is but when I tried to run the script it shows me
/usr/bin/perl^M: bad interpreter: No such file or directory
I checked and usr/bin/ does have perl in there .I am not sure what is wrong.I checked a bit and looks like I am missing some spaces or something ..I tried adding those at the end of usr/bin/perl and at the end of the file but that didnt help either. I even tried to use dos2unix
dos2unix oldfile newfile
'dos2unix' not found.This is on MacOSX. Might I also mention that I am sshing into my mac using my windows machine at home.