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

How can one use any of the PErl/Tk widget bundled with the Perl installation for Windows. I tried calling search.pl but I keep getting this error message : Can't call method "WidgetDemo" on an undefined value at search.pl line 14. How can one use any of the example scripts as a module for instance? Of course, I added require "search.pl" at the top of my script! Thanks

Replies are listed 'Best First'.
Re: Perl/TK demo Widget Utilization
by spurperl (Priest) on Aug 27, 2005 at 09:11 UTC
    Just running "widget" in the command line does it for me.

    Start->Run...
    type "cmd"
    Then you get at c:\whatever ... >
    Type "widget", it should work if you have activeperl correctly installed.

    Also check the ActivePerl docs for "widget" to see how to use it.

Re: Perl/TK demo Widget Utilization
by josera (Beadle) on Aug 29, 2005 at 13:10 UTC
    Hello
    I'm using ActivePerl, 5.8 for windows and i can use Perl/Tk whitout any problem.
    I'm only include the line
    use Tk
    to work with Perl/Tk.
    I hope it could be you useful.