in reply to Re: how do I use a hash of hashes reference to a function ?
in thread how do I use a hash of hashes reference to a function ?
Sorry, I neglected to read your title very well and did not take this one step further:
You can go as deep as you want here with hashes of hashes of hashes. Hope that helps...%hash = ( one => { a => 10, b => 20 }, two => { c => 30, d => 40 } ); &function(\%hash); sub function { my $hash = shift; $hash->{two}->{d} = 50; # changes 'd' }
|
---|
In Section
Seekers of Perl Wisdom