my %hash = ( foo => 'baz' ); print $hash{foo}.'\n'; myroutine( \%hash ); print $hash{foo}.'\n'; sub myroutine { my $hash_ref = shift; $$hash_ref{foo}='bar'; }
In reply to Re: passing hashes and hash reference
by Masem
in thread passing hashes and hash reference
by symŽ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |