in reply to A dereferencing problem
It appears you have already been sufficiently answered, but I have a quick nitpicky comment that will probably get me some giggle-inducing downvotes. In your question, you say:
I have a sub routine which returns a HASH reference to a data structure as follows
$myhash{$key}->($value1, $value2)
I'm not sure if you meant that %myhash contains an array reference at $key, but your code seems to indicate that it's actually a code reference. The syntax you have is exactly that for calling a code reference, and passing $value1 and $value2 as arguments to it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: A dereferencing problem
by periapt (Hermit) on Apr 29, 2004 at 19:03 UTC | |
by revdiablo (Prior) on Apr 29, 2004 at 23:14 UTC |