Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\CPANPLUS\Internals\Search.html
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>../lib/CPANPLUS/Internals/Search.pm</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:" /> </head> <body style="background-color: white"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> ../lib/CPANPLUS/Internals/Search.pm</span></strong></big> </td></tr> </table> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#synopsis">SYNOPSIS</a></li> <li><a href="#description">DESCRIPTION</a></li> <li><a href="#methods">METHODS</a></li> <ul> <li><a href="#_search_module_tree__type____type__allow______regexex___data______previous_results____">_search_module_tree( type => TYPE, allow => \@regexex, [data => \@previous_results ] )</a></li> <li><a href="#_search_author_tree__type____type__allow______regexex___data______previous_results____">_search_author_tree( type => TYPE, allow => \@regexex, [data => \@previous_results ] )</a></li> <li><a href="#_all_installed__"><code>_all_installed()</code></a></li> </ul> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <hr /> <h1><a name="name">NAME</a></h1> <p>CPANPLUS::Internals::Search</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> my $aref = $cpan->_search_module_tree( type => 'package', allow => [qr/DBI/], );</pre> <pre> my $aref = $cpan->_search_author_tree( type => 'cpanid', data => \@old_results, verbose => 1, allow => [qw|KANE AUTRIJUS|], );</pre> <pre> my $aref = $cpan->_all_installed( );</pre> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>The functions in this module are designed to find module(objects) based on certain criteria and return them.</p> <p> </p> <hr /> <h1><a name="methods">METHODS</a></h1> <p> </p> <h2><a name="_search_module_tree__type____type__allow______regexex___data______previous_results____">_search_module_tree( type => TYPE, allow => \@regexex, [data => \@previous_results ] )</a></h2> <p>Searches the moduletree for module objects matching the criteria you specify. Returns an array ref of module objects on success, and false on failure.</p> <p>It takes the following arguments:</p> <dl> <dt><strong><a name="type" class="item">type</a></strong> <dd> <p>This can be any of the accessors for the <code>CPANPLUS::Module</code> objects. This is a required argument.</p> </dd> </li> <dt><strong><a name="allow" class="item">allow</a></strong> <dd> <p>A set of rules, or more precisely, a list of regexes (via <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlop.html#qr_"><code>qr//</code></a> or plain strings), that the <a href="#type"><code>type</code></a> must adhere too. You can specify as many as you like, and it will be treated as an <code>OR</code> search. For an <code>AND</code> search, see the <a href="#data"><code>data</code></a> argument.</p> </dd> <dd> <p>This is a required argument.</p> </dd> </li> <dt><strong><a name="data" class="item">data</a></strong> <dd> <p>An arrayref of previous search results. This is the way to do an <code>AND</code> search -- <code>_search_module_tree</code> will only search the module objects specified in <a href="#data"><code>data</code></a> if provided, rather than the moduletree itself.</p> </dd> </li> </dl> <p> </p> <h2><a name="_search_author_tree__type____type__allow______regexex___data______previous_results____">_search_author_tree( type => TYPE, allow => \@regexex, [data => \@previous_results ] )</a></h2> <p>Searches the authortree for author objects matching the criteria you specify. Returns an array ref of author objects on success, and false on failure.</p> <p>It takes the following arguments:</p> <dl> <dt><strong>type</strong> <dd> <p>This can be any of the accessors for the <code>CPANPLUS::Module::Author</code> objects. This is a required argument.</p> </dd> </li> <dt><strong>allow</strong> <dd> <p>A set of rules, or more precisely, a list of regexes (via <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlop.html#qr_"><code>qr//</code></a> or plain strings), that the <a href="#type"><code>type</code></a> must adhere too. You can specify as many as you like, and it will be treated as an <code>OR</code> search. For an <code>AND</code> search, see the <a href="#data"><code>data</code></a> argument.</p> </dd> <dd> <p>This is a required argument.</p> </dd> </li> <dt><strong>data</strong> <dd> <p>An arrayref of previous search results. This is the way to do an <code>and</code> search -- <code>_search_author_tree</code> will only search the author objects specified in <a href="#data"><code>data</code></a> if provided, rather than the authortree itself.</p> </dd> </li> </dl> <p> </p> <h2><a name="_all_installed__"><code>_all_installed()</code></a></h2> <p>This function returns an array ref of module objects of modules that are installed on this system.</p> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> ../lib/CPANPLUS/Internals/Search.pm</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de