App::Pimpd::Playlist::Search - Search the current playlist
use App::Pimpd; use App::Pimpd::Playlist::Search my $result = search_playlist('laleh'); my $file = $result->{42};
App::Pimpd::Playlist::Search provides functions for searching the current playlist.
Parameters: $query
Returns: \%result
Given a query (possibly a regular expression), return a hash whose keys are the playlist position IDs and the values the paths (relative to MPD).
Returns: @paths
Given a query (possibly a regular expression), search through all playlists for matches.
In list context, returns the matched paths.
In scalar context, returns the number of matched files.
App::Pimpd::Playlist
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.