Posts tagged ‘perl’

/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