I am trying to pass a hash reference and array reference to subroutine but getting error like invalid class string:
sub test{
if($chk == 2)
{
return(\%hash,\@array);
}
}
my ($has, $arr)= test();
Now again i have to pass by reference to "$has, $arr" to a another subroutine.
How to do this? i was passing them like \%$has, \@$arr but it seems this is not the currect way to pass to a subroutine.