Message-ID: <4RB7hF$RL3@newsmth.net>
Subject: ���一��删���募�时������������
Date: Fri, 17 Nov 2006 15:42:13 +0000
From: I41@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!news1.google.com!newsfeed.media.kyoto-u.ac.jp!news.neu.edu.cn!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/w/M.1163777823.h0
Xref: news.cnusenet.org cn.bbs.comp.lang.perl:30111

�����玫莨�删��一��目录���及����目录�����械某���txt �募�之����募�
使�玫某������拢�

#! /usr/bin/perl -w
use File::Find;

find(sub {
         if (-f $_ && $_ =~ /\.txt$/) {
             print " $_ is htm files!\n";
         }
        elsif(-d $_){
             print "$_ is dir!\n";
        }
        else{
             system "del $_";
        }
     }, ".");
print "\n", "="x70, "\n";

�����������牵�没�办法删���募���������锌崭���募�
应����么�����兀�

����������还��什么���,��������慕�
��指��一�掳�..


--
   `��       ��
  ��      ��  .    `       ��
     . __ �� __��  
  .   ``��i���   --   ��未���募�
�q�������������������r  
��   �A�F           ��  


�� �薷�:��I41 �� Nov 17 23:42:12 �薷谋��摹�[FROM: 162.105.212.*]
�� ��源:��水木���� newsmth.net��[FROM: 162.105.212.*]