From: Jérémie Galarneau Date: Thu, 23 Apr 2015 23:41:35 +0000 (-0400) Subject: Tests: Don't rely on implicit scalar expression dereference X-Git-Tag: v2.5.5~25 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=da564d9695bd8b961f7e1f51fb2f012eb740932d;p=lttng-tools.git Tests: Don't rely on implicit scalar expression dereference This silences an "experimental feature" warning when using Perl 5.20.2. Signed-off-by: Jérémie Galarneau --- diff --git a/tests/utils/babelstats.pl b/tests/utils/babelstats.pl index 64a243fc8..53c85d4d0 100755 --- a/tests/utils/babelstats.pl +++ b/tests/utils/babelstats.pl @@ -118,7 +118,7 @@ sub print_fields_stats foreach my $field (keys %{$merged_ref->{$tracepoint}}) { my @sorted; - my @val = keys ($merged_ref->{$tracepoint}->{$field}); + my @val = keys %{$merged_ref->{$tracepoint}->{$field}}; if ($val[0] =~ /^\d+$/) { # Sort numerically