From c08ff73c462c266921575086a149c1079e335a4d Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 25 Oct 2014 15:13:51 +0300 Subject: [PATCH] Fix push/keys on reference is experimental warnings --- lib/App/MusicExpo.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 '?'; } } -- 2.39.2