본문 바로가기

♪ 아치리눅스

/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/\015//' *.pl