in reply to Creating a hash with the same name as the value of $hashref-{y}
my %master; $master{$hashref->{y}}{$hashref->{z}} = 'value'; # In the spirit of giving 'em enough rope, # and hoping I never have to maintain the code, # here's the symbolic reference version ${$$hashref{y}}->{$$hashref{z}} = 'value';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Creating a hash with the same name as the value of $hashref-{y}
by kingman (Scribe) on Aug 15, 2001 at 23:29 UTC | |
by runrig (Abbot) on Aug 16, 2001 at 00:23 UTC |