App::Pimpd::Collection::Album - Album functions
use App::Pimpd; use App::Pimpd::Collection::Album; my @albums = albums_by_artist('Laleh'); my @songs = songs_on_album('Me and Simon');
App::Pimpd::Collection::Album exports functions that provides album-specific data.
my @albums = albums_by_artist('Laleh');
Parameters: $artist | NONE
Returns: @albums | scalar(@albums)
In list context, returns a sorted list with the albums (strings) where $artist is featured.
In scalar context, returns the number of albums where $artist is featured.
If called without arguments, the current artist is used.
my @songs = songs_on_album('Stripped'); # Christina Aguilera
Parameters: $album, $artist | NONE
Returns: @paths | scalar(@paths)
In list context, returns a list with full paths to the songs on album.
In scalar context, returns the number of files on the album.
If called without arguments, the current album is used.
Note that if called without a second argument, it can return both Bob Dylan and Britney Spears if the album is 'Best of'.
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.