If the result is a ref to an array, print the array.
(Have to be careful about becoming Data::Dumper...)
This commit is contained in:
@@ -150,7 +150,13 @@ sub test_fn {
|
|||||||
if (grep(/^$method$/,@Dump)) {
|
if (grep(/^$method$/,@Dump)) {
|
||||||
$Dumped{$method} = 1;
|
$Dumped{$method} = 1;
|
||||||
foreach my $iid (keys %$results){
|
foreach my $iid (keys %$results){
|
||||||
print " $iid : $results->{$iid}\n";
|
print " $iid : ";
|
||||||
|
if (ref($results->{$iid}) eq 'ARRAY') {
|
||||||
|
print "[ ", join(", ", @{$results->{$iid}}), " ]";
|
||||||
|
} else {
|
||||||
|
print $results->{$iid};
|
||||||
|
}
|
||||||
|
print "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user