CUer 当前离线
上尉
aaa aaa bbb aaa bbb bbb bbb ccc bbb复制代码
aaa bbb aaa bbb ccc bbb复制代码
评分人数
523066680 (消遣区)当前离线
版主
open READ,"<a.txt" or die "file not exist $!"; open WRITE,">b.txt"; $ever=""; foreach (<READ>) { if ($_ ne $ever) {print WRITE;} $ever=$_; } <STDIN>; close READ; close WRITE;复制代码
TOP