Message-ID: <4R4Y9k$Qf0@newsmth.net>
Subject: �矢���������
Date: Thu, 09 Nov 2006 09:28:54 +0000
From: doudd@newsmth.net-SPAM.no (�������植�����)
Path: news.cnusenet.org!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.lang.perl.mbox.zip!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.cn99.com!news.newsmth.net!NEWSMTH
Newsgroups: cn.bbs.comp.lang.perl
Organization: 水木����
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Perl/d/M.1163064286.x0
Lines: 57
Xref: news.cnusenet.org cn.bbs.comp.lang.perl:30022

��file1����file2�������
����说��
file1��
01 02 03 04 05
01 02 03 07 06
01 02 03 05 06
01 22 03 04 05
file2��
01 02 03 04 05
01 22 33 04 05
01 02 03 05 06
01 22 03 04 05
������
01 02 03 07 06
���拇��:
#!/usr/contrib/bin/perl -w

open(FILE1,"1.txt")||die"$!";
open(FILE2,"2.txt")||die"$!";
open(DEST,">3.txt")||die"$!";

while(defined($_=<FILE1>))
{
       $temp=$_;
lineone:  while(defined($_=<FILE2>))
        {  
         $b=$_;
          if ($b ne $temp)
          { $count=1;}
          else
          {$count=0;
          last lineone;}
        }
       
       if($count==1)
       {print DEST $temp;}
       $_=$temp;
}
����牵�
01 02 03 07 06
01 02 03 05 06
01 22 03 04 05
����冒������疲���指��一��
�浅���谢



--
���露�十�耍���前���霞摇� ���������耍���学�汛��� ��笑���吮��������指����
壹�������危����懦����� �华学������������装�。 �����卟��,���掳����伞�
��位�����遥����������。 一路没��说���杉��衰�� 祝������貌��越��越�每���
��女������啥������说�� �谐�����牵��晨�牡��印� 未������路���腋�����。
����糯�一������太���。 ����说�偌�笑����花��
���液����,���诎����。 �����俺傻��咋��要���。


�� ��源:��水木���� newsmth.net��[FROM: 162.105.247.*]