slackget10::Search - The slack-get search class
Version 1.0.0
A class to search for packages on a slackget10::PackageList object
use slackget10::Search; my $search = slackget10::Search->new($packagelist); my @array = $search->search_package($string); # the simplier, search a matching package name my @array = $search->search_package_in description($string); # More specialyze, search in the package description my @array = $search->search_package_multi_fields($string,@fields); # search in each fields for matching $string
All methods return an array of slackget10::Package objects.
This method take a string as parameter search for packages matching the string, and return an array of slackget10::Package
@packages = $packageslist->search_package('gcc');
Take a string as parameter, and search for this string in the package description
my @array = $search->search_package_in description($string);
Take a string and a fiels list as parameter, and search for this string in the package required fields
my @array = $search->search_package_multi_fields($string,@fields);
DUPUIS Arnaud, <a.dupuis@infinityperl.org>
<a.dupuis@infinityperl.org>
Please report any bugs or feature requests to bug-slackget10-networking@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=slackget10. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-slackget10-networking@rt.cpan.org
Copyright 2005 DUPUIS Arnaud, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install slackget10, copy and paste the appropriate command in to your terminal.
cpanm
cpanm slackget10
CPAN shell
perl -MCPAN -e shell install slackget10
For more information on module installation, please visit the detailed CPAN module installation guide.