You'll need to return references to your hashes from the sub, as in:
return(\%test1, \%test2);In the caller, if you must, you can dereference the hashrefs by:
my ($test1,$test2) = &testsub; my %test1 = %$test1; my %test2 = %$test2;
In reply to Re: can i return two hashes from a soubroutine
by thezip
in thread can i return two hashes from a soubroutine
by harryC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |