I just downloaded my first module that wasn't part of the original build. It's called Win32::Clipboard.
I saved the file, Clipboard.pm to C:\strawberry\perl\lib\Win32\Clipboard.pm
I had to create the win32 subdirectory to put it there. Then I put use Win32::Clipboard; in my code, on line 5.
When I run it, the error is as follows: Can't locate loadable object for module Win32::Clipboard in @INC (@INC contains: C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .) at cp.plx line 5.
I tried several things; using Win32.pm, looking for other supplemental files associated with Clipboard, moving Clipboard around to other directories, running something called ppm to install win32-Clipboard, but it said "Error installing package 'win32-Clipboard': Could not locate a PPD file for package win32-Clipboard"
Any ideas?
Thanks,
Jonathan
In reply to How do I use a module? by JDoolin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |