in reply to Re: Re: Getting a branch of a nested hash
in thread Getting a branch of a nested hash
It all depends, doesn't it? :-) (And also why objects should encapsulate this crap.)my %hash = ( key1 => { a => 1, b => 2, }, key2 => 'blah' ); my %hash1 = %{ $hash{key1} }; $hash1{a} = 3; # This change persists $hash1{c} = 5; # This change does NOT persist
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
|---|