Perl / Tk help

Frank Mandato plug-discuss@lists.plug.phoenix.az.us
19 Jun 2003 08:34:35 -0700


 I am playing with MySql and Perl. The book I am using is Perl Database
Programming. Not a bad book, btw.

 My problem is this: The book also uses Tk. 

 When I run the program I get the following error message: 
========================================================================
     ./listing5-4.pl
Can't locate Tk.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at
./listing5-4.pl line 10.
BEGIN failed--compilation aborted at ./listing5-4.pl line 10.
=========================================================================
  The program uses the statement "use Tk;" which is line 10. From the
error messages I would guess that I need the Tk.pm module.

  I am running RH9, I installed Tk/tcl, Tkinter after I installed the
system.

  I looked on Cpan and got almost 800 modules when searching for Tk::pm
in the modules section, but did not find Tk::pm lidted.

  Anyone know off hand where I can find this module, and if I actually
need it.

  TIA

  FrankM