kkavitha has asked for the wisdom of the Perl Monks concerning the following question:
my %modHash #It holds values getHash({"pdtName"=>"$pdtName","modHash"=>\%modHash}); sub getHash{ my $pdtName= $_[0]{pdtName}; my %moduleHash= $_[0]{modHash}; while (($key, $value) = each(%moduleHash)){ print "key +:".$key.",Value:".$value."\n"; } }
Let me know if anyone knows to retrieve the hash value in subroutine
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I pass hash in subroutine with multiple parameters
by moritz (Cardinal) on Aug 18, 2009 at 12:17 UTC | |
| |
|
Re: How do I pass hash in subroutine with multiple parameters
by cdarke (Prior) on Aug 18, 2009 at 12:57 UTC | |
|
Re: How do I pass hash in subroutine with multiple parameters
by Anonymous Monk on Aug 18, 2009 at 12:17 UTC |