1CPANPLUS::Internals::SeUasrecrh(C3o)ntributed Perl DocumCePnAtNaPtLiUoSn::Internals::Search(3)
2
3
4
6 CPANPLUS::Internals::Search
7
9 my $aref = $cpan->_search_module_tree(
10 type => 'package',
11 allow => [qr/DBI/],
12 );
13
14 my $aref = $cpan->_search_author_tree(
15 type => 'cpanid',
16 data => \@old_results,
17 verbose => 1,
18 allow => [qw⎪KANE AUTRIJUS⎪],
19 );
20
21 my $aref = $cpan->_all_installed( );
22
24 The functions in this module are designed to find module(objects) based
25 on certain criteria and return them.
26
28 _search_module_tree( type => TYPE, allow => \@regexex, [data => \@pre‐
29 vious_results ] )
30
31 Searches the moduletree for module objects matching the criteria you
32 specify. Returns an array ref of module objects on success, and false
33 on failure.
34
35 It takes the following arguments:
36
37 type
38 This can be any of the accessors for the "CPANPLUS::Module"
39 objects. This is a required argument.
40
41 allow
42 A set of rules, or more precisely, a list of regexes (via "qr//" or
43 plain strings), that the "type" must adhere too. You can specify as
44 many as you like, and it will be treated as an "OR" search. For an
45 "AND" search, see the "data" argument.
46
47 This is a required argument.
48
49 data
50 An arrayref of previous search results. This is the way to do an
51 "AND" search -- "_search_module_tree" will only search the module
52 objects specified in "data" if provided, rather than the moduletree
53 itself.
54
55 _search_author_tree( type => TYPE, allow => \@regexex, [data => \@pre‐
56 vious_results ] )
57
58 Searches the authortree for author objects matching the criteria you
59 specify. Returns an array ref of author objects on success, and false
60 on failure.
61
62 It takes the following arguments:
63
64 type
65 This can be any of the accessors for the "CPANPLUS::Module::Author"
66 objects. This is a required argument.
67
68 allow
69 A set of rules, or more precisely, a list of regexes (via "qr//" or
70 plain strings), that the "type" must adhere too. You can specify as
71 many as you like, and it will be treated as an "OR" search. For an
72 "AND" search, see the "data" argument.
73
74 This is a required argument.
75
76 data
77 An arrayref of previous search results. This is the way to do an
78 "and" search -- "_search_author_tree" will only search the author
79 objects specified in "data" if provided, rather than the authortree
80 itself.
81
82 _all_installed()
83
84 This function returns an array ref of module objects of modules that
85 are installed on this system.
86
87
88
89perl v5.8.8 2007-03-31 CPANPLUS::Internals::Search(3)