$ref = { "person" => { "name" => "Bob" } }; # this works print $ref->{person}{name}; # this doesn't $n = '{person}{name}'; print $ref->$n;
In reply to variable interpolation while dereferencing by arc_of_descent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |