http://sonic64.com/2003-05-27.html
perl -e 'print "I'm a student.\n"'
みたいにワンライナーの中でシングルクオートを使おうとするとエラーが出てしまう問題の
対処方法について。
結論としては、シングルクオートを「\x27」のアスキーコードで表現してやればいい。
以下のコードならうまくいく。
$ perl -e 'print "I\x27m a student.\n"'
I'm a student.