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

So that uses less unnecessary space than my initial way of doing it? Because I'm referencing the hash and not actually declaring all of the variables that I don't need?

  • Comment on Re^2: Get certain information from MP3::Tag's autoinfo()

Replies are listed 'Best First'.
Re^3: Get certain information from MP3::Tag's autoinfo()
by hbm (Hermit) on Aug 07, 2012 at 19:39 UTC

    You could do this:

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

    But I like toolic's solution better.