看板
[ Perl ]
討論串[問題] 資料長度
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
放上程式片段. open(file1,"<1.txt");. while($line1=<file1>){. chomp $line1;. @array=split/\s+/,$line1;. open(file2,"<2.txt");. while($line2=<file2>){. @array
(還有420個字)
內容預覽:
目前遇到的問題,拿兩個檔案比對,第一欄位相同的話. 就把第二個檔案的內容接在第一個檔案後面,但不包含比對的欄位. ex:. 1.txt----- e890a A.00 23 35. 2.txt----- e890a 345 123. print f $line." ".$array[1]." ".$
(還有100個字)
首頁
上一頁
1
下一頁
尾頁