XP is just a number | |
PerlMonks |
How to use Inheritance with Inside-Out Classes and Hash Based Classesby ghenry (Vicar) |
on Nov 15, 2005 at 17:06 UTC ( [id://508694]=perlquestion: print w/replies, xml ) | Need Help?? |
ghenry has asked for the wisdom of the Perl Monks concerning the following question: Dear Monks, I am playing with Inside-Out Classes and trying to do Inheritance, but not sure how to use hash-references within Objects of a Inside-Out class. An example class like so: And the client code I've written is like so:
No you can see my problem, listShares(); is part of File::Samba, which is hash based. My program output is: So the listShares method of File::Samba expects the object to be a hash reference. How can I provide this? Thanks and feel free to give me a slap if this is something trivial! ;-) Gavin.
Walking the road to enlightenment... I found a penguin and a camel on the way..... Fancy a yourname@perl.me.uk? Just ask!!! 2005-11-16 Retitled by planetscape, as per Monastery guidelines
Back to
Seekers of Perl Wisdom
|
|