Thank you for you're reply...and question re what I'm trying. The object within an object is a proxy for a combo box that I've made i.e. the list box is in the parent object and the child object is a TK entry widget that I've "enhanced" and that is useful in it's own right. The combo boxes will be used in clusters and whilst there's some similarity in their functionality (locked away in the objects) I wanted to customise them by passing in a non-oop subroutine that gets called when a key is pressed in the entry (child object). To this end I'm passing the non-oop customising subroutine into the parent object to pass onto the child object upon it's creation along with a reference to the parent object. This is so the child object (entry) can call the custom subroutine and supply it with the parent object's reference when the entry's custom bindtag fires. I could reference the combo's directly 'cos they created in main just like the non-oop sub but wonder how you'd pass a combo reference internally...for future reference i.e. I can get around this but in a not very oop-way. Hope that explains

In reply to Re^2: using passed parent object reference to get at attributes by previous
in thread using passed parent object reference to get at attributes by previous

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.