Message-ID: <4RAaRD$QbJ@newsmth.net>
Subject: Re: ��谈�perl�莨���梅�
Date: Fri, 17 Nov 2006 03:16:15 +0000
From: Kaffir@newsmth.net-SPAM.no (Alone in the shadow)
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!news2.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.simtel.ru!Simtel.RU!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/n/M.1163733277.j0
Xref: news.cnusenet.org cn.bbs.comp.lang.perl:30098


�� �� lshj98115 (pipi) �拇������到: ��
: 写��一��perl�疟� 目���前训�前目录������目录���.v�募�删���
: #!/usr/bin/perl -w
: $cur = `pwd`;
: chomp($cur);
: delv($cur);
: sub delv
: {
:     $dir = $_[0];
:     print"current dir  is \"$dir\" \n";
:     system "rm -rf  $dir/*.v" ;
:     while(<$dir/*>)     
:     {
:         if(-d $_)
:         {       
:             print"$_ will be processed! \n";
:             delv($_);
              delv($dir . "/" . $_);
:         }       
:     }
: }
: 思路��一直�诘�前目录������使�镁��路����删���募���
: ���执������ 只删���说�前�募��泻���一���募������.v�募����������虏���募���没��删��
: 直����find������������要������一��perl�递归,�烦��腋�指����������凇�


--
C is quirky, flawed, and an enormous success.
                                        
                            ��Dennis Ritchie


�� �薷�:��Kaffir �� Nov 17 11:16:15 �薷谋��摹�[FROM: 193.11.244.*]
�� ��源:��水木���� newsmth.net��[FROM: 193.11.244.*]