diff --git a/webtools/PLIF/PLIF/MagicPipingArray.pm b/webtools/PLIF/PLIF/MagicPipingArray.pm index c6608afbaedf..f74cb265c855 100644 --- a/webtools/PLIF/PLIF/MagicPipingArray.pm +++ b/webtools/PLIF/PLIF/MagicPipingArray.pm @@ -56,14 +56,7 @@ sub AUTOLOAD { foreach my $object (@$self) { my $method = $object->can($name); if ($method) { - my @result = &$method($object, @_); - if (@result <= 1) { - if (@result and defined($result[0])) { - push(@allResults, @result); - } - } else { - push(@allResults, [@result]); - } + push(@allResults, [&$method($object, @_)]); } else { confess("Failed to find method or property '$name' in object '$object' of MagicPipingArray '$self', aborting"); # die with stack trace }