NAME
App::Pimpd::Playlist::Search - Search the current playlist
SYNOPSIS
use App::Pimpd;
use App::Pimpd::Playlist::Search
my $result = search_playlist('laleh');
my $file = $result->{42};
DESCRIPTION
App::Pimpd::Playlist::Search provides functions for searching the current playlist.
EXPORTS
- search_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).
- search_all_playlists()
-
Parameters: $query
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.
SEE ALSO
App::Pimpd::Playlist
AUTHOR
Magnus Woldrich
CPAN ID: WOLDRICH
m@japh.se
http://japh.se
COPYRIGHT
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.