Hello there,
I installed ActivePerl (I kept all default settings) and also downloaded Tk 804.028 and extracted it to C:\Tk-804.029.
I'm wondering why I keep on receiving this error whenever I run this simple script on my command prompt window (I'm using Windows XP Pro).
Can’t locate Tk.pm in @INC <@INC contains: C:/Perl/site/lib C:/Perl/lib .> at tk1.pl line 2
Here's the pl script... tk1.pl
#! c:\perl\bin\perl
use Tk;
# Main Window
my $mw = new MainWindow;
my $label = $mw -> Label(-text=>"Hello World") -> pack();
my $button = $mw -> Button(-text => "Quit",
-command => sub { exit })
-> pack();
MainLoop;
Also, I tried to change the first line from #! c:\perl\bin\perl to #! c:\Tk-804.029\Tk but I encountered this error...
Can't exec c:\Tk-804.029\Tk at tk1.pl line 1.