A
Alont
just tell me the name of module,
my english too poor to can't understand all module help files, forgive
me....
my english too poor to can't understand all module help files, forgive
me....
specified folder(and subfolders)?Alont said:Subject: what module could easiely load all files to a @array from a
just tell me the name of module,
my english too poor to can't understand all module help files, forgive
me....
Alont said:just tell me the name of module,
my english too poor to can't understand all module help files, forgive
me....
what module could easiely load all files to a @array
from a specified folder(and subfolders)?
use File::Finder; # in CPAN
my @array = File::Finder->type('f')->in($specified_folder);
A. Sinan Unur said:Don't order people around.
Alont said:(e-mail address removed) (Randal L. Schwartz)Wrote at 22 Sep 2004
09:23:55 -0700:
So simple! but if I only want *.txt file list, should "type('f')"
change to "type('*.txt')" or "type('txt')"?
are you sure that file::find(there haven't a modle namedPaul Lalli said:type is the type of directory entry - 'f' means file. If you want to
restrict your match to files that match only a certain name, you need
another step:
my @array =
File::Finder->type('f')->name('*.txt')->in($specified_folder);
just tell me the name of module,
Alont said:just tell me the name of module,
my english too poor to can't understand all module help files, forgive
me....
are you sure that file::find(there haven't a modle named
"Finder")have a object?:
Your fault as a Government is My failure as a citizen
Alont said:just tell me the name of module,
my english too poor to can't understand all module help files, forgive
me....
Bernard El-Hagin said:Which is what you just did.
Here's a better question... If your english is too poor to understand
a plain english help file how is your english going to be sufficient
enough to understand a plain english reply?
Alont said:in the beginning I read the help file of File::find ,but can't find a
way to easiely solve my problem
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.