I would get rid of all those _Get subroutines, and hashes of hashes (makes no sense)
Then I would stuff %TagInfo into a SQLite database, and run SQL queries against it.$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;
In reply to Re: Accessing nested elements
by Anonymous Monk
in thread Accessing nested elements
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |