Audio::MPD::Common::Item::Song - a song object with some audio tags
Audio::MPD::Common::Item::Song is more a placeholder for a hash ref with some pre-defined keys, namely some audio tags.
Audio::MPD::Common::Item::Song
This module has a new() constructor, which should only be called by Audio::MPD::Common::Item's constructor.
new()
Audio::MPD::Common::Item
The only other public methods are the accessors - see below.
The following methods are the accessors to their respective named fields: album(), artist(), dat(), file(), genre(), id, pos, title(), track(), time(). You can call them either with no arg to get the value, or with an arg to replace the current value.
album()
artist()
dat()
file()
genre()
id
pos
title()
track()
time()
Return a string representing $song. This string will be:
(in this order), depending on the existing tags of the song. The last possibility always exist of course, since it's a path.
Jerome Quelin, <jquelin at cpan.org>
<jquelin at cpan.org>
Copyright (c) 2007 Jerome Quelin, 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 Audio::MPD::Common, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Audio::MPD::Common
CPAN shell
perl -MCPAN -e shell install Audio::MPD::Common
For more information on module installation, please visit the detailed CPAN module installation guide.