/usr/bin/perl^M: bad interpreter: No such file or directory

this is caused by the cartage return on the ending of first line. To fix this, you can

1. add -w to the end of the line. make it #!/usr/bin/perl -w

or

2. $ perl -pi.bak -e ‘s/ 15//’ *.pl

Xin

3 thoughts on “/usr/bin/perl^M: bad interpreter: No such file or directory

Leave a Reply

Your email address will not be published. Required fields are marked *