♪ 아치리눅스

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

재즈벌레 2009. 1. 29. 11:02

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