forked from gitpan/File-List
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
48 lines (31 loc) · 1.18 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
NAME
File::List - Perl extension for crawling directory trees and
compiling lists of files
SYNOPSIS
use File::List;
my $search = new File::List("/usr/local");
$search->show_empty_dirs(); # toggle include empty directories in output
my @files = @{ $search->find("\.pl\$") }; # find all perl scripts in /usr/local
DESCRIPTION
This module crawls the directory tree starting at the provided
base directory and can return files (and directories if desired)
matching a regular expression
INTERFACE
The following methods are available in this module.
new($base);
This creates a new File::List object and starts crawling the
tree from this base
It takes a scalar base directory as an argument and returns an
object reference
find($regexp);
This method accepts a scalar regular expression to search for.
It returns a reference to an array containing the full path to
files matching the expression (under this base).
debug($level);
This sets the debug level for find
show_empty_dirs();
Toggle display of empty directories
AUTHOR
Dennis Opacki, [email protected]
SEE ALSO
perl(1).