in reply to Getting a branch of a nested hash
Note: my %page = %{ ... }; is making a copy of the hash. Changes will not be retained. If you are changing that branch and want your changes to stick around, you will need to do something like my $page = ...; and $page->{first_control} = 'foo';
As a rule of thumb, if you already have the reference, just use it, unless you don't want to change it and should copy it.
------
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Getting a branch of a nested hash
by Aragorn (Curate) on Jan 27, 2003 at 22:14 UTC | |
by dragonchild (Archbishop) on Jan 27, 2003 at 22:24 UTC |