Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Get certain information from MP3::Tag's autoinfo()by thmsdrew (Scribe) |
on Aug 07, 2012 at 19:03 UTC ( [id://986059]=perlquestion: print w/replies, xml ) | Need Help?? |
thmsdrew has asked for the wisdom of the Perl Monks concerning the following question: MP3::Tag's autoinfo() works as follows:
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.
Back to
Seekers of Perl Wisdom
|
|