in reply to Coercing Tk

The "Can't locate loadable object for module..." error means that a compiled file associated with the module couldn't be found. For example, I can get this error by moving the .so dynamic library file for a module. These files should be in an auto/ directory somewhere in @INC.

If the module itself were missing, you would get the error "Can't locate Tk/Event.pm in @INC...".

You've got the .pm file, but not the associated file(s), so the question is, how did you install the Tk modules? Did you follow the instructions in the README file?

Replies are listed 'Best First'.
Re: Re: Coercing Tk
by Falkkin (Chaplain) on Dec 23, 2000 at 22:31 UTC
    I installed Tk by doing a perl -MCPAN -e "shell" and typing install Tk at the prompt.

    However, with your help, I got it to work... I didn't have access to the auto/ directory; after chmod 755'ing it, the use Tk directive works fine. Thanks.