Claude2005
Aug 3rd, 2010, 01:46 AM
Hello there,
To start, feel free to move this if you find this thread inappropriate to this section of the forum. Next, my concern, I just started playing around with Perl just a few days ago and I'm wondering anyone could point me to the right direction.
I'm trying to develop a simple application, like "Hello World!", in a Windows environment. I already installed ActivePerl (http://www.activestate.com/activeperl) and kept the default settings. I also downloaded Tk 804.028 (http://search.cpan.org/~srezic/Tk-804.028/) and unzipped it to C:\Tk-804.208\. Everytime I ran my script, this error occurs
Can’t locate Tk.pm in @INC <@INC contains: C:/Perl/site/lib C:/Perl/lib .> at tk1.pl line 2
Here's my script
#! 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;
If I change c:\perl\bin\perl with c:\Tk-804.208\Tk this error occur
Can't exec c:\Tk-804.029\Tk at tk1.pl line 1.
If I can get past this problem, I can already start developing applications for a UNIX/LINUX environment.
As a side question, can I use Visual Basic instead of Perl/Tk?
Thanks in advance :D
To start, feel free to move this if you find this thread inappropriate to this section of the forum. Next, my concern, I just started playing around with Perl just a few days ago and I'm wondering anyone could point me to the right direction.
I'm trying to develop a simple application, like "Hello World!", in a Windows environment. I already installed ActivePerl (http://www.activestate.com/activeperl) and kept the default settings. I also downloaded Tk 804.028 (http://search.cpan.org/~srezic/Tk-804.028/) and unzipped it to C:\Tk-804.208\. Everytime I ran my script, this error occurs
Can’t locate Tk.pm in @INC <@INC contains: C:/Perl/site/lib C:/Perl/lib .> at tk1.pl line 2
Here's my script
#! 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;
If I change c:\perl\bin\perl with c:\Tk-804.208\Tk this error occur
Can't exec c:\Tk-804.029\Tk at tk1.pl line 1.
If I can get past this problem, I can already start developing applications for a UNIX/LINUX environment.
As a side question, can I use Visual Basic instead of Perl/Tk?
Thanks in advance :D