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:
In reply to Re: Get certain information from MP3::Tag's autoinfo()
by toolic
in thread Get certain information from MP3::Tag's autoinfo()
by thmsdrew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |