��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.*]