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...
Subject Author Views Date
Thread Why does use Tk not work on my server??? TheSafePick 4792 Feb 23, 2004, 5:32 PM
Thread Re: [TheSafePick] Why does use Tk not work on my server???
Mark Badolato 4666 Feb 23, 2004, 6:36 PM
Thread Re: [Mark Badolato] Why does use Tk not work on my server???
TheSafePick 4643 Feb 23, 2004, 7:58 PM
Post Re: [TheSafePick] Why does use Tk not work on my server???
fuzzy logic 4640 Feb 23, 2004, 9:00 PM