From: Marius Gavrilescu Date: Sat, 25 Oct 2014 12:13:51 +0000 (+0300) Subject: Fix push/keys on reference is experimental warnings X-Git-Tag: 0.004~1 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=c08ff73c462c266921575086a149c1079e335a4d;p=app-musicexpo.git Fix push/keys on reference is experimental warnings --- diff --git a/lib/App/MusicExpo.pm b/lib/App/MusicExpo.pm index a6c21a5..0b3276c 100644 --- a/lib/App/MusicExpo.pm +++ b/lib/App/MusicExpo.pm @@ -140,7 +140,7 @@ sub run { next unless defined $info; my $basename = fileparse $file, '.flac', '.mp3', '.ogg', '.oga', '.mp4', '.aac', '.m4a'; $files{$basename} //= []; - push $files{$basename}, $info; + push @{$files{$basename}}, $info; } my $ht=HTML::Template::Compiled->new( @@ -154,8 +154,8 @@ sub run { my @versions = @$_; my %entry = (%{$versions[0]}, formats => []); for my $ver (@versions) { - push $entry{formats}, {format => $ver->{format}, file => $ver->{file}}; - for my $key (keys $ver) { + push @{$entry{formats}}, {format => $ver->{format}, file => $ver->{file}}; + for my $key (keys %$ver) { $entry{$key} = $ver->{$key} if $ver->{$key} ne '?'; } }