App::Pimpd::Collection::Search - Package exporting various search functions for the MPD collection
use App::Pimpd; use App::Pimpd::Collection::Search my @album = search_db_album('Stripped'); my @songs = search_db_quick('love');
App::Pimpd::Collection::Search provides search functions for the MPD collection
my @paths = search_db_quick('foo');
Parameters: $regex
Returns: @paths
Given a valid regular expression, searches the collection for matching filenames. The search is performed case insensitive.
In list context, returns full paths for the matched songs.
In scalar context, returns the number of matches.
my @paths = search_db_artist('Laleh');
Parameters: $string
In list context, returns full paths for all songs by $artist.
In scalar context, returns the number of songs by $artist.
In list context, returns full paths for the songs on $album.
In scalar context, returns the number of songs on albums.
In list context, returns full paths for the songs named $string.
In scalar context, returns the number of songs named $string.
App::Pimpd::Collection
Magnus Woldrich CPAN ID: WOLDRICH m@japh.se http://japh.se
Copyright (C) 2010, 2011 Magnus Woldrich. All right reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install App::Pimpd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Pimpd
CPAN shell
perl -MCPAN -e shell install App::Pimpd
For more information on module installation, please visit the detailed CPAN module installation guide.