monkMAC has asked for the wisdom of the Perl Monks concerning the following question:

Good evening/morning, I am building a program in TK with dialog boxes that pop up on cue. When I compile, I get this warning: Can't locate auto/Tk/Text=HASH(0x22be670).al in @INC ??? I read the module script for this variable to no avail (though it was quite interesting....) Any help would be greatly appreciated.

Replies are listed 'Best First'.
Re: TK module weirdness
by kvale (Monsignor) on Jun 27, 2002 at 03:44 UTC
    It would help debugging if we could see the offending code. I have seen bugs like this when (1) Tk is not installed properly or (2) the appropriate  use statements have not been included:
    use Tk; use Tk::Text; # not sure this is needed, but can't hurt

    -Mark
Re: TK module weirdness
by rjray (Chaplain) on Jun 27, 2002 at 07:01 UTC

    The error message leads me to believe that you have a place in your code where an object reference is being stringified. Since it seems to be revolving around a Tk::Text object, I would look for places where you are manipulating variables constructed from that class. Tk sets up a, shall we say, "creative" auto-loading scheme to catch calls to widgets and classes. It looks like it is trying to "autoload" a stringified reference to a Tk::Text object.

    As the previous responder said, actual code would help in diagnosing this.

    --rjray