News::Pan::Server::Group::_Search - search methods for group object
This module is inherited by News::Pan::Server::Group. This is to perform a search of a pan file for article subjects.
my $search = new News::Pan::Server::Group({ abs_path =>'/home/myself/.pan/astraweb/alt.binaries.sounds.mp3' }); $search->search_add('elvis'); $search->search_add('presley'); $search->search_add('.mp3'); $search->search_negative('lisa'); $search->search_count; $search->search_subjects; $search->search_reset;
Calling any of the term setters starts a search. the term setters are search add and search negative methods.
argument is a string. will match case sensitive.
$g->search_add_exact('James Mason');
argument is a string, will split on non word chars and do insensitive inclusive match
$g->search_add('Lisa Loeb');
matches all article subjects with lisa and loeb, in any order.
reverse of search_add_exact()
reverse of search_add().
reset the search for a new search to be made.
returns number of article subjects matching at present.
returns array ref with subjects of matching articles.
News::Pan
Leo Charre leocharre at cpan dot org
To install News::Pan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm News::Pan
CPAN shell
perl -MCPAN -e shell install News::Pan
For more information on module installation, please visit the detailed CPAN module installation guide.