in reply to Defining a hash key for later use

The following seems to work for me. I'm storing a reference in the page hash rather than a value. When $toolbar->{'standard'} is later populated, the value will change and the reference that is stored in the page hash will point to the new value.
$page->{'page_key'}{'toolbar'} = \$toolbarRef->{'standard'}; $toolbar->{'standard'} = 7; print ${$page->{'page_key'}{'toolbar'}}; #prints 7

Replies are listed 'Best First'.
Re^2: Defining a hash key for later use
by amw1 (Friar) on Feb 01, 2005 at 16:56 UTC
    That appears to work. I had a hole elsewhere. *sigh* I should have done a small test case rather than working in my main program. Thanks.