Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl/tk and Activestate Perl 5.12..4

Status
Not open for further replies.

willgsr

Programmer
May 28, 2002
3
US
Hi,

Forgive me is this topic has already been covered. I am hobby programmer on Windows. I am normally a mainframe systems programmer. I just upgraded my perl from 5.8 to 5.12.4. I noticed when i used the Activestate version of perl, the TK component is not working. I cannot find the TK.PM module for the current version of perl. I have tried older ones with no luck. Can someone point me in a direction to fix it, or at least some doc on why i am getting an error.

Here is the error I am getting
Can't locate Tk.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at perl_tk_example.pl line 2.

My sample IVP program i run

#!usr/bin/perl
use Tk;

my $mw = MainWindow->new;

$mw->Button(-text => 'Hello', -command => [\&printem, "Hello\n"])->pack;
$mw->Button(-text => 'End', -command => [$mw => 'destroy'])->pack;

Thhanks
 
Tk is not part of the standard distribution of ActivePerl. "Tkx" is. You could install Tk from cpan.

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top