Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm writting home automation gateway for Linux MEdia Center application. I communicate with automation system via rs232 and have written separate object code for it...
On the other hand, I communicate with LMCE system via TCP socket (separate object code).
Majority of time I do poll of devices status on both interfaces. If any change occurs, then I have to send proper info also on another interface....
Now I'd like for instance use methods of first mentioned object instance in second mentioned object.
I tried simply by sending object A instance as parameter to method of object B and call method but it seems it doesn't work....
Any advice, example ?
Thanks in advance,
regards,
Bulek.
I'm writting home automation gateway for Linux MEdia Center application. I communicate with automation system via rs232 and have written separate object code for it...
On the other hand, I communicate with LMCE system via TCP socket (separate object code).
Majority of time I do poll of devices status on both interfaces. If any change occurs, then I have to send proper info also on another interface....
Now I'd like for instance use methods of first mentioned object instance in second mentioned object.
I tried simply by sending object A instance as parameter to method of object B and call method but it seems it doesn't work....
Any advice, example ?
Thanks in advance,
regards,
Bulek.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Calling methods of object instance A from object instance B
by erroneousBollock (Curate) on Nov 29, 2007 at 01:53 UTC |
Back to
Seekers of Perl Wisdom