in reply to Dynamic menus in Perl/Tk giving error

Which versions of Perl, Tk, and OS are you running?

Your snippet runs and exits clean on my system. (XP/AS815/804.027).


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Dynamic menus in Perl/Tk giving error
by bibliophile (Prior) on Dec 23, 2005 at 21:20 UTC
    I'm running ActiveState Perl 5.8.2 on WinXP SP2:

    C:\wrk\hmm>perl -v This is perl, v5.8.2 built for MSWin32-x86-multi-thread (with 25 registered patches, see perl -V for more detail) Copyright 1987-2003, Larry Wall Binary build 808 provided by ActiveState Corp. http://www.ActiveState. +com ActiveState is a division of Sophos. Built Dec 9 2003 10:19:40
    Oop: and...
    C:\wrk\Tk-MARC_Editor-0.5>perl -e "use Tk; print $Tk::version . $/;" 8.0
    -- David

      That your snippet runs clean here would tend to indicate that there is nothing wrong with your code; which leaves you in the position of deciding what you should upgrade to fix the problem.

      As AS Perl comes with Tk, if upgrading Perl is an option for you, that would probably be the path of least resistance. I've successfully installed the last half dozen AS binary distributions over the top of their predecessors, thus avoiding having to re-build/reinstall all the modules I've added to my distribution, and have yet to find a binary incompatibility. However, I do not run any "production code", or anything vital to me.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        Ah, yep, upgrading to the newest ActiveState release fixed it.

        Thanks.

        -- David