Browse Source

Fix depreciation warnings in acqui/z3950_search.pl

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>
3.2.x
Colin Campbell 14 years ago
committed by Galen Charlton
parent
commit
d7a6f17f11
  1. 10
      acqui/z3950_search.pl

10
acqui/z3950_search.pl

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

Loading…
Cancel
Save