CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
A question on Win32 perl for a fresher

 



banjiyaqub
Deleted

May 23, 2001, 6:25 AM

Post #1 of 4 (1125 views)
A question on Win32 perl for a fresher Can't Post

I m trying out the sample script I found on win32 perl, but while running the script I encounter an error message :


C:\>perl hello.plx Can't locate Win32/GUI.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at hello.plx line 1.
BEGIN failed--compilation aborted at hello.plx line 1.

I have active perl 5.6 build 623 on my MS Windows NT workstaion OS. On the perl directory, I also have the file Win32.pm since I suspect that as a possible problem.

What advice do you guys have for me ? See the script below.

----------------------

use Win32::GUI;
$main = Win32::GUI::Window->new(
-name => 'Main',
-width => 100,
-height => 100,
);
$main->AddLabel(-text => "Hello, world");
$main->Show();
Win32::GUI::Dialog();

sub Main_Terminate {
-1;
}



freddo
User

May 23, 2001, 6:42 AM

Post #2 of 4 (1123 views)
Re: A question on Win32 perl for a fresher [In reply to] Can't Post

Hi Banji,

you probably need to install the Win32::GUI module.

Check if you have one of those first:
C:/Perl/lib/Win32/GUI.pm
C:/Perl/site/lib/Win32/GUI.pm

reguards,
freddo

;---
Real programmers don't eat cache.


banjiyaqub
Deleted

May 23, 2001, 7:46 AM

Post #3 of 4 (1121 views)
Re: A question on Win32 perl for a fresher [In reply to] Can't Post

Freddo,

Thanks for the response, I have the file GUI.pm and I cannot locate it on the site you suggested. I got the script from documents obtained from the link in the first place. What I have instead is Win32.pod, Any relationship ?

Banji Yaqub




freddo
User

May 23, 2001, 9:26 AM

Post #4 of 4 (1120 views)
Re: A question on Win32 perl for a fresher [In reply to] Can't Post

Re Banji,

Nope Win32.pm have to do with access to the win32 functions (calling a dll and suchs). You need to download Win32::GUI, if the file wasnt installed where i told you, you can download the package from sourceforge here, and install it yourself.

Or you may try the ppm command at the prompt and type: install Win32::GUI (but i dont know if the package is aviailable from active state, you may need to try search GUI to know).

ps: try also perldoc ppm for help on the activestate package manager.

i hope this helps
freddo

;---
Real programmers don't eat cache.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives