windows下用perl查找文件的代码
use File::Find; use Win32::File;
&File::Find::find(&wanted,"C:httpd", "C:testing"); sub wanted{ (Win32::File::GetAttributes($_,$attr)) && ($attr & DIRECTORY) && print "$File::Find::namen"; }
CopyRight © 2010-2021 脚本学堂 Jb200.com , All Rights Reserved.