Not sure what I have got wrong but there seems limited information on the www and the man pages don't seem to cover this scenario

Without scrutiny of the code I'm going to say its your typical coping with scoping Tk issue :) read all about it see write Tk callbacks all lexically scoped and not-memory leaking with no nested subs ever :) avoid nested subs and closures because nested named subs because they're closures

update: I ran the program, yup, exactly as I figured , tk scoping issue, tk closures people, Re: TK Submenus (Tk::Menu , global variables/ spirit of strict), tk scoping function argument passing, can't share Tk mainwondow between threads

update: I've read the program, here is a fix, add this one line

for (my $m = 1; $m <=12; $m++) { my %hash = %hash; ## poor name

The deal is, you can't share the same variable between 12 different calendars ... you need 12 different variables

And now for a message about Tkx (the questions are rhetorical :):

Why are you using Tkx? Did you know that Tk is available via ppm? There is no reason to switch to Tkx voluntarily.

Also :)Tkx is the worst possible option


In reply to Re: TkxTables within a TkxTable by Anonymous Monk
in thread TkxTables within a TkxTable by richardh865

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.