in reply to Re^2: Data structure / hash reference question
in thread Data structure / hash reference question
You'd think that as long as I've been toying around with perl, I'd've figured it out or stumbled across it by now.
I tried several "obvious" things, none of which worked:
$color = ${ ... }->{color}; $color = $${ ... }->{color}; $color = ${%{ ... }}{color};
The parenthesis are a surprise to me, but I'm glad it's possible to avoid the two-step!
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Data structure / hash reference question
by stevieb (Canon) on Apr 21, 2012 at 18:42 UTC | |
|
Re^4: Data structure / hash reference question
by tobyink (Canon) on Apr 22, 2012 at 08:45 UTC | |
by stevieb (Canon) on Apr 22, 2012 at 13:10 UTC |