in reply to Get certain information from MP3::Tag's autoinfo()
autoinfo() returns an array with the information or a hashref. The hash has four keys 'title', 'track', 'artist' and 'album' where the information is stored. If comment, year or genre are found, the hash will have keys 'comment' and/or 'year' and/or 'genre' too.
Try:
my $info = $mp3->autoinfo(); # hashref print $info->{album}; print $info->{artist};
See also:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Get certain information from MP3::Tag's autoinfo()
by thmsdrew (Scribe) on Aug 07, 2012 at 19:29 UTC | |
by hbm (Hermit) on Aug 07, 2012 at 19:39 UTC |