Fix depreciation warnings in acqui/z3950_search.pl
authorColin Campbell <colin.campbell@ptfs-europe.com>
Tue, 15 Jun 2010 17:42:18 +0000 (18:42 +0100)
committerGalen Charlton <gmcharlt@gmail.com>
Thu, 17 Jun 2010 23:32:33 +0000 (19:32 -0400)
Perl generates depreciation warnings on compilation
caused by use of ambiguous syntax. Seemed that an
underlying confusion as to row's type

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
acqui/z3950_search.pl

index 5c1a060..1dc5519 100755 (executable)
@@ -90,14 +90,14 @@ my $DEBUG = 0;    # if set to 1, many debug message are send on syslog.
 my $frameworks = getframeworks;
 my @frameworkcodeloop;
 foreach my $thisframeworkcode ( keys %$frameworks ) {
-    my %row = (
+    my $row = {
         value         => $thisframeworkcode,
         frameworktext => $frameworks->{$thisframeworkcode}->{'frameworktext'},
-    );
-    if ( %row->{'value'} eq $frameworkcode){
-        %row->{'active'} = 'true';
+    };
+    if ( $row->{'value'} eq $frameworkcode){
+        $row->{'active'} = 'true';
     }
-    push @frameworkcodeloop, \%row;
+    push @frameworkcodeloop, $row;
 }
 
 $template->param( frameworkcode => $frameworkcode,