I appreciate the earlier tip on using the file finder module, but I'm
having some trouble figuring out the right syntax to do what I want...
I can't seem to limit the search to a specified directory or directories
with the maxdepth parameter. Assuming it has that parameter, as I don't
see it in the documentation.
I've tried
My @file_list =
File::Finder->type('f')->in('$search_dir')->maxdepth('0');
In differing order, but nothing works.
Most often I get the error
Can't call method "maxdepth" without a package or object reference. Am
I correct in assuming that this is telling me File::Finder does not have
a maxdepth option?
Without the maxdepth it works just fine, but it searches a lot of
unnecessary files for my purpose, and I can't seem to decipher the docs
well enough to construct what I need. If anyone can shed some light on
the syntax for this module it would be greatly appreciated.
Jason Wozniak
Systems Administrator,
Oracle DBA
Henkels & McCoy
985 Jolly Road
Blue Bell PA, 19422