Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: error dereferencing array in a tied hash

by Henri Icarus (Beadle)
on Sep 29, 2001 at 20:19 UTC ( #115637=note: print w/replies, xml ) Need Help??

in reply to error dereferencing array in a tied hash

Yep, I've seen that too. The issues is, I think, that what you get from the tied hash is a reference to the method in the tied object, and that doesn't get executed in context of the array dereference, but it does in the context of assigning the value to a variable. Why this would be, I don't know.

-I went outside... and then I came back in!!!!

  • Comment on Re: error dereferencing array in a tied hash

Replies are listed 'Best First'.
Re: Re: error dereferencing array in a tied hash
by Anonymous Monk on Sep 29, 2001 at 20:39 UTC

    Know of any workarounds that don't involve changing all the outside hash access code? The idea of the tie is to leave that code alone while adding something hidden. I've tried lots of things with no luck. Strange that it only happens with some ties, and when it does, it does it consistently with that tie. That leads me to believe there's something I can do in the tie code to make it work. What, I don't know ...

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://115637]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2023-02-07 11:33 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (39 votes). Check out past polls.