CGI:要はLFにしとかなきゃダメってこと

#!/usr/bin/perl^M

こうなっていると、Perlの検索に失敗してブラウザでInternal Server Errorが出る場合がある。

その場合、以下の一行パールで変更することができる。

MS-DOS系→UNIX

perl  -pe  's/\015\012/\012/g' file

Mac→UNIX

perl  -pe  's/\012/\015/g' file

Leave a comment

You must be logged in to post a comment.