A
Alont
#!F:\Perl\bin\perl
$specified_folder = 'D:\Inetpub\wwwroot';
use File::Finder;
@files =
File::Finder->type('f')->name('*.html')->in($specified_folder);
foreach(@files)
{print $_, "\n";}
the result:
D:\Inetpub\wwwroot/article/layout/2004/csslayout/fourbox_touch.html
D:\Inetpub\wwwroot/article/layout/2004/csslayout/onebox.html
D:\Inetpub\wwwroot/article/layout/2004/3h2l.html
there are possible to change the "/" to "\" in windows platform? I
mean if there have a syntax switch to do this so I don't have to
replace every "/".
If this is a faq please tell me the perl document name, thank you.
$specified_folder = 'D:\Inetpub\wwwroot';
use File::Finder;
@files =
File::Finder->type('f')->name('*.html')->in($specified_folder);
foreach(@files)
{print $_, "\n";}
the result:
D:\Inetpub\wwwroot/article/layout/2004/csslayout/fourbox_touch.html
D:\Inetpub\wwwroot/article/layout/2004/csslayout/onebox.html
D:\Inetpub\wwwroot/article/layout/2004/3h2l.html
there are possible to change the "/" to "\" in windows platform? I
mean if there have a syntax switch to do this so I don't have to
replace every "/".
If this is a faq please tell me the perl document name, thank you.