Text::Playlist -- base class for work with various playlist formats
This module acts only as base class for specific parsers.
load
my @items = $pls->load('playlist.pls');
Simple helper for loading playlist from file. See also parse.
parse
my @items = $pls->parse($text);
Takes playlist text and returns array of hashrefs with playlist items. In scalar content returns arrayref.
save
$pls->save('playlist.pls', @items);
Simple helper for saving playlist to file. See also dump.
dump
my $text = $pls->dump(@items);
Takes array of hashrefs with playlist items and returns constructed playlist.
Text::Playlist::M3U, Text::Playlist::PLS, Text::Playlist::XSPF
* Alex 'AdUser' Z <aduser@cpan.org>
To install Text::Playlist, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Playlist
CPAN shell
perl -MCPAN -e shell install Text::Playlist
For more information on module installation, please visit the detailed CPAN module installation guide.