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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.