in reply to How to use pass and return hashes in a subroutine
Tell us what you have done, and is not working. I also suggest using 'my' and not 'local'. And redoing that part to be like:return %foo; # my %hash = sub(\%hash); return $foo; # my $hash_ref = sub(\%hash);
my %arg = @_; my $key;
Cheers,
KM
|
|---|