I have created 2 objects called Customer and Debug. They are very simple (for purpose of testing), having just a constructor and some simple methods. Now in my main program cust.pl, I instantiate the 2 objects as $cust and $debug. From cust.pl, I can easily access methods of $debug object. Now how do I access this $debug object from inside the methods of $cust object?
One way is to pass the $debug object as a constructor
or maybe even per method argument.
But that looks like too much of work.
Am I missing something simple here?
I would very much appreciate any help in the form
of links or some usefeul hints/feedback.
--
arc_of_descent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |