http://www.perlmonks.org?node_id=986059

thmsdrew has asked for the wisdom of the Perl Monks concerning the following question:

MP3::Tag's autoinfo() works as follows:

($title, $track, $artist, $album, $comment, $year, $genre) = $mp3->aut +oinfo(); # or $info = $mp3->autoinfo();

Is there a way to only return specific values from this method? I only want $album and $artist. As I see it, I have to use

($title, $track, $artist, $album) = $mp3->autoinfo();,

which defines $title and $track unnecessarily. Can I accomplish this? I have a feeling it might have something to do with using a hash reference. Not too sure though.