in reply to Accessing nested elements

References quick reference

I would get rid of all those _Get subroutines, and hashes of hashes (makes no sense)

$TagInfo{bitrate} = $m->audioProperties->bitrate(); $TagInfo{channels} = $m->audioProperties->channels(); $TagInfo{comment} = $m->tag()->comment()->toCString(); $TagInfo{genre} = $m->tag()->genre()->toCString(); $TagInfo{length} = $m->audioProperties->length(); $TagInfo{samplerate} = $m->audioProperties->sampleRate(); $TagInfo{track} = $m->tag()->track(); $TagInfo{year} = $m->tag()->year(); $TagInfo{artist} = $m->tag()->artist()->toCString(); $TagInfo{title} = $m->tag()->title()->toCString(); $TagInfo{album} = $m->tag()->album()->toCString(); return \%TagInfo;
Then I would stuff %TagInfo into a SQLite database, and run SQL queries against it.