http://qs321.pair.com?node_id=33578


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:
%hash = ( one => { a => 10, b => 20 }, two => { c => 30, d => 40 } ); &function(\%hash); sub function { my $hash = shift; $hash->{two}->{d} = 50; # changes 'd' }
You can go as deep as you want here with hashes of hashes of hashes. Hope that helps...
  • Comment on RE: Answer: how do I use a hash of hashes reference to a function ?
  • Download Code