#callMult returning an array and a scalar my @ret = callMult(); my $foo = pop @ret; #### sub callMult { return \@result, $count; } my ($result, $count) = callMult(); # you can then use $result->[$i]; # to access the array elements # or @result_array = @$result; # to dereference it