Gossamer Forum
Home : General : Perl Programming :

Why does use Tk not work on my server???

Quote Reply
Why does use Tk not work on my server???
Hi,

I tried using this code within my script. The code works great on the perl interpreter on my computer. However, the version of perl on my server complaines. I would like add windows to my script. Do any one know of a windows system that's not Tk??


use Tk;

my $main = new MainWindow;


sub cwindow{

my $value = shift;


$main->Label(-text => $value )->pack;
$main->Button(-text => 'Quit',
-command => sub{exit}
)->pack;
}

&cwindow( "Error! Your name was not entered." );
MainLoop;



Thanks,
Dave...
Quote Reply
Re: [TheSafePick] Why does use Tk not work on my server??? In reply to
And, what is the complaint that the server gives you?
Quote Reply
Re: [Mark Badolato] Why does use Tk not work on my server??? In reply to
Hi,

I guess I will have to use another method of placing a window in my script because even the first line " use Tk " causes the perl interpreter on my server to complain. The error message is "/error_docs/500.php". Please! Do you know of another method to windows other than Tk???
Sorry, seems an explanation is owed.The server encountered an internal error or misconfiguration and was unable to complete your request /error_docs/500.php

Apache/1.3.22 Server at www.bargain-center.net Port 80

Thanks,
Dave

Last edited by:

TheSafePick: Feb 23, 2004, 7:59 PM
Quote Reply
Re: [TheSafePick] Why does use Tk not work on my server??? In reply to
Perl/Tk is not designed to run on a web server via a browser. it's more or less a client side API.

Philip
------------------
Limecat is not pleased.