Thanks for the help thus far, but I think that I failed to fully explain my problem. I want the text on the menubutton to change WHENEVER bit 9 or bit 10 changes. Not only when bit 9 or bit 10 is changed by the menubutton itself, but also when I change the value of bit 9 or bit 10 at other points in my code.

Do I need to change
-textvariable => \$bit_10_9,

to something else?

Everything works fine (i.e. the text changes WHENEVER bit 9 is changed) when I use only
-textvariable => \$bit[9],
or
-textvariable => \$bit[10],

If it works fine for one bit....how can I make it work for a concatenation of two bits?
I don't want to have to update another variable like $bit_10_9 everytime I change $bit[10] or $bit[9].

In reply to Re: Updating concatenated text on a Menubutton by Kahlua_II
in thread Updating concatenated text on a Menubutton by Kahlua_II

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.