From: Don Armstrong Date: Wed, 19 Mar 2014 21:23:45 +0000 (-0700) Subject: fix syntax error and typo in make_index_from_stubs.pl X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=commitdiff_plain;h=6ba80f84f03691f4f90e6361fe0e02c9a5e202bb fix syntax error and typo in make_index_from_stubs.pl --- diff --git a/t/test_spool/versions/indices/make_index_from_stubs.pl b/t/test_spool/versions/indices/make_index_from_stubs.pl index 5d56e14..dbda1b0 100755 --- a/t/test_spool/versions/indices/make_index_from_stubs.pl +++ b/t/test_spool/versions/indices/make_index_from_stubs.pl @@ -44,13 +44,13 @@ sub populate_index{ @stub_results = @{$stub_results[0]}; } if ((@stub_results % 2) == 0 and - not ref($stub_results[0]) and + not ref($stub_results[0]) ) { %stub_results_to_add = @stub_results; } else { for my $stub_result (@stub_results) { - next unless ref($stub_results); - next unless ref($stub_results) eq 'HASH'; + next unless ref($stub_result); + next unless ref($stub_result) eq 'HASH'; %stub_results_to_add = (%stub_results_to_add, %{$stub_result}); }