Re: [請益]新手請教一下
※ 引述《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
討論串 (同標題文章)
Perl 近期熱門文章
PTT數位生活區 即時熱門文章