將整個檔案作為字串讀取

perl -0777 -ne'print "The whole file as a string: --->$_<---\n"'

注意:-0777 只是一個慣例。任何 -0400 及以上版本都是相同的。