From: Matthias Bethke Date: Tue, 21 Jul 2015 08:00:49 +0000 (+0700) Subject: fix evil autoderef X-Git-Tag: collectd-5.6.0~617^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c80f8bd00c1981b4118618dd6935cf33f7e10aa1;p=collectd.git fix evil autoderef --- diff --git a/bindings/perl/t/01_methods.t b/bindings/perl/t/01_methods.t index 2f7818b1..4e94f8e8 100644 --- a/bindings/perl/t/01_methods.t +++ b/bindings/perl/t/01_methods.t @@ -16,7 +16,7 @@ sub test_query { my ($nresults, $resultdata) = @$results; my $r = $s->getval(%{Collectd::Unixsock::_parse_identifier($attr)}); is(ref $r, 'HASH', "Got a result for $attr"); - is(scalar keys $r, $nresults, "$nresults result result for $attr"); + is(scalar keys %$r, $nresults, "$nresults result result for $attr"); is_deeply($r, $resultdata, "Data or $attr matches"); }