1AnyData::Format::Mp3(3)User Contributed Perl DocumentatioAnnyData::Format::Mp3(3)
2
3
4
6 AnyData::Format::Mp3 - tied hash and DBI access to Mp3 files
7
9 use AnyData;
10 my $playlist = adTie( 'Passwd', ['c:/My Music/'] );
11 while (my $song = each %$playlist){
12 print $song->{artist} if $song->{genre} eq 'Reggae'
13 }
14
15 OR
16
17 use DBI
18 my $dbh = DBI->connect('dbi:AnyData:');
19 $dbh->func('playlist','Mp3,['c:/My Music'],'ad_catalog');
20 my $playlist = $dbh->selectall_arrayref( qq{
21 SELECT artist, title FROM playlist WHERE genre = 'Reggae'
22 });
23 # ... other DBI/SQL operations
24
26 This module provides a tied hash interface and a DBI/SQL interface to
27 MP files. It creates an in-memory database or hash from the Mp3 files
28 themselves without actually creating a separate database file. This
29 means that the database is automatically updated just by moving files
30 in or out of the directories.
31
32 Many mp3 (mpeg three) music files contain a header describing the song
33 name, artist, and other information about the music.
34
35 Simply choose 'Mp3' as the format and give a reference to an array of
36 directories containing mp3 files. Each file in those directories will
37 become a record containing the fields:
38
39 song
40 artist
41 album
42 year
43 genre
44 filename
45 filesize
46
47 This module is a submodule of the AnyData.pm and DBD::AnyData.pm
48 modules. Refer to their documentation for further details.
49
51 copyright 2000, Jeff Zucker <jeff@vpservices.com> all rights reserved
52
53
54
55perl v5.28.1 2015-01-28 AnyData::Format::Mp3(3)