Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Get certain information from MP3::Tag's autoinfo()

by Kenosis (Priest)
on Aug 07, 2012 at 20:37 UTC ( #986077=note: print w/replies, xml ) Need Help??


in reply to Get certain information from MP3::Tag's autoinfo()

Here's another option:

my ( $artist, $album ) = ( $mp3->autoinfo )[ 2, 3 ];

Replies are listed 'Best First'.
Re^2: Get certain information from MP3::Tag's autoinfo()
by thmsdrew (Scribe) on Aug 08, 2012 at 12:42 UTC

    Thanks, I rather like this solution!

      You're most welcome, thmsdrew! Glad it worked for you...

        I actually don't know if it worked for me or not. Don't have Perl on my machine at work unfortunately. I'll know when I get home!