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

I have installed Tk on a Win2000 server running Perl using ppm. It seemed to work without any errors. I have tried a simple script:
#!usr/bin/perl use Tk; my $main = MainWindow->new; MainLoop;
However, when I try to run this code from a browser, nothing happens. Well, after a couple of minutes I get a server timeout error. Am I missing something? Maybe I do not understand how Tk is meant to be used? Has anyone encountered this scenario before?

Replies are listed 'Best First'.
Re: Tk Hang-up
by buckaduck (Chaplain) on Feb 14, 2002 at 01:59 UTC
    Perl/Tk is not meant to be used in a browser. You probably want a language like Java if this is what you're trying to accomplish.

    buckaduck

Re: Tk Hang-up
by Chmrr (Vicar) on Feb 14, 2002 at 03:33 UTC