arc_of_descent has asked for the wisdom of the Perl Monks concerning the following question:
$ref = { "person" => { "name" => "Bob" } }; # this works print $ref->{person}{name}; # this doesn't $n = '{person}{name}'; print $ref->$n;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: variable interpolation while dereferencing
by Zaxo (Archbishop) on Oct 27, 2002 at 11:12 UTC | |
by arc_of_descent (Hermit) on Oct 27, 2002 at 11:49 UTC | |
by fruiture (Curate) on Oct 27, 2002 at 12:03 UTC | |
by arc_of_descent (Hermit) on Oct 27, 2002 at 12:18 UTC | |
|
Re: variable interpolation while dereferencing
by PodMaster (Abbot) on Oct 27, 2002 at 11:32 UTC | |
by Aristotle (Chancellor) on Oct 27, 2002 at 14:38 UTC |