-
1
- #1
I am a novice at perl and recently began learning about modules. I use perl on the WinNT 4 (and doing some experimentation on Win2000) platform.
I'm able to use modules that came with the ActiveState 5.6 package but am having problems using any modules I add. For instance, I got a copy of DriveInfo. The readme file simply instructs me as follows: "No special installation is needed. Just put it into /Win32 subdir somewhere in your @INC." The author also mentions that Win32::API.pm is needed to use this module. I got the api.pm file as well and installed in the same manner. When I try to run a simple script using Win32:riveInfo:
use Win32:riveInfo;
$type = Win32:riveInfo:riveType('a');
print "drive type is: $type\n";
I get the following error:
Can't locate loadable object for module Win32::API in @INC (@INC contains: E:/Perl/lib E:/Perl/site/lib .) at E:/Perl/lib/Win32/DriveInfo.pm line 8
Compilation failed in require at E:/Perl/lib/Win32/DriveInfo.pm line 8.
BEGIN failed--compilation aborted at E:/Perl/lib/Win32/DriveInfo.pm line 8.
Compilation failed in require at E:\NotProf\test1.pl line 1.
BEGIN failed--compilation aborted at E:\NotProf\test1.pl line 1.
Any ideas where my mistake is? Can you point me at a good source on how to install and use modules? BTW, I also tried ppm but it tells me it cannot locate the .ppd file.
Thanks for your help in advance
I'm able to use modules that came with the ActiveState 5.6 package but am having problems using any modules I add. For instance, I got a copy of DriveInfo. The readme file simply instructs me as follows: "No special installation is needed. Just put it into /Win32 subdir somewhere in your @INC." The author also mentions that Win32::API.pm is needed to use this module. I got the api.pm file as well and installed in the same manner. When I try to run a simple script using Win32:riveInfo:
use Win32:riveInfo;
$type = Win32:riveInfo:riveType('a');
print "drive type is: $type\n";
I get the following error:
Can't locate loadable object for module Win32::API in @INC (@INC contains: E:/Perl/lib E:/Perl/site/lib .) at E:/Perl/lib/Win32/DriveInfo.pm line 8
Compilation failed in require at E:/Perl/lib/Win32/DriveInfo.pm line 8.
BEGIN failed--compilation aborted at E:/Perl/lib/Win32/DriveInfo.pm line 8.
Compilation failed in require at E:\NotProf\test1.pl line 1.
BEGIN failed--compilation aborted at E:\NotProf\test1.pl line 1.
Any ideas where my mistake is? Can you point me at a good source on how to install and use modules? BTW, I also tried ppm but it tells me it cannot locate the .ppd file.
Thanks for your help in advance