diarmuid has asked for the wisdom of the Perl Monks concerning the following question:
As it is I end up with the number of tracks in each album (artist_mp3{$id3v1->artist}{$id3v1->album})foreach my $mp3_file (@cdrom_mp3s) { chomp $mp3_file; my $mp3 = MP3::Tag->new($mp3_file); $mp3->getTags; if (exists $mp3->{ID3v1}) { my $id3v1 = $mp3->{ID3v1}; #print STDOUT $id3v1->artist," : ", $id3v1->song,"\n"; my $track_song = $id3v1->track."-".$id3v1->song; $artist_mp3{$id3v1->artist}{$id3v1->album}++; } }
However how do I modify this so that the above variable contains an array of all the songs eg
except a working version ;-)push (@$artist_mp3{$id3v1->artist}{$id3v1->album}, id3v1->song);
Diarmuid
Edit by tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: constructing hohoa
by davorg (Chancellor) on Sep 26, 2001 at 20:18 UTC | |
|
Re: constructing hohoa
by diarmuid (Beadle) on Sep 26, 2001 at 20:14 UTC |