Re: [請益]新手請教一下

看板Perl作者 (東大)時間18年前 (2007/03/07 22:23), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
※ 引述《abliou (Art of Life)》之銘言: : open file,"<session.txt"; : while (<file>){ : /(\d+\.\d+\.\d+\.\d+)/; : $hash{$1}++ ; : } : close file; : open file,">temp.txt"; : print "$key = $value \n" while ($key,$value)=each %hash; : close file; 感謝~~原來還有這麼簡易的方法,看來我還需要多多加油,謝謝大家 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 221.169.170.106
文章代碼(AID): #15xihPSh (Perl)
討論串 (同標題文章)
文章代碼(AID): #15xihPSh (Perl)