Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Accessing reference to tied Apache::Session hashby impossiblerobot (Deacon) |
on Aug 01, 2002 at 17:27 UTC ( [id://186853]=perlquestion: print w/replies, xml ) | Need Help?? |
impossiblerobot has asked for the wisdom of the Perl Monks concerning the following question: I'm using Apache::Session in my application, tying a hash, then passing around a reference to that hash. Unfortunately, I can't figure out how to access the underlying object from the reference, so that I can delete the session information. I've tried: $tied($session)->delete();and: $session->delete();which both fail: $tied($session) returns undef (I suppose since the $session scalar isn't tied) and $session (of course) isn't an object (blessed reference), so I can't call the delete() method on it. What is the proper way to (de)reference this? Impossible Robot
Back to
Seekers of Perl Wisdom
|
|