actually create the array reference, but it worked anyway! Now i
find out perl has autovivified these since at least 2000. Yet i'm
sure they weren't being autovivified when i had to do something
similar at Lexmark a couple years ago. Maybe it was a bug in
whatever Perl version i was using, or more likely i was just smoking
crack...
Kill hhlp.
return ($artist, $album, $discnum, @tags);
}
-# Hash of Hashes of Lists Push
-sub hhlp {
- my $hash = shift;
- my $key1 = shift;
- my $key2 = shift;
- my $val = shift;
-
- return push(@{$hash->{$key1}->{$key2}}, $val);
-}
-
sub bork_tags {
my $h = shift;
my @result;
my (@bork, @titles);
for my $tag (@tags) {
if ($tag =~ /^([^[]+)\[(\d+)]=(.*)/) {
- hhlp(\%things, $2, $1, $3);
+ push(@{$things{$2}->{$1}}, $3);
} elsif ($tag =~ /^ARTIST=/) {
push(@artist, $tag);
} else {