在某文件末尾插入一行文字perl -e 'print "hello"' >> world.txt
perl -i.bak -e '{open F,">>$ARGV[0]";print F "Hello\n" }' regexcl.txt
-p选项不是以\n或^P作为标记一行一行读取么?