I was sent a perl script in the mail and asked to run it. I put it on my local drive as it is, but when I tried to run the script, it showed me
/usr/bin/perl^M: bad interpreter: No such file or directory
I checked and usr / bin / has perl. I'm not sure what is wrong. I checked a little and looked like I was missing spaces or something like that. I tried adding them at the end of usr / bin / perl and at the end of the file, but that didn't help either. I even tried using dos2unix
dos2unix oldfile newfile
'dos2unix' not found. This is on MacOSX. May I also mention that I am in my mac using my Windows machine at home.
perl
Manish
source share