Thank you to everyone that replied.

Looks like it is working, thanks to your help, and some guessing, and checking. I will include the unsuccessful steps I took, in case they may have done something that was necessary.

Unsuccessful steps.

  1. Ran cpan install Win32::Clipboard: The installation appeared to be successful, but the Error: Can't locate loadable object for module Win32::Clipboard remained.
  2. I removed Clipboard.pm from the \perl\lib folder, then tried cpan install Win32::Clipboard again. This time, it failed to install, with error Failed 1/1 test programs. 1/9 subtests failed.

Successful Steps.

  1. I placed Clipboard.xs in the \perl\lib folder
  2. I changed the extension on Clipboard.xs to Clipboard.pm.
  3. Ran cpan install Win32::Clipboard: This time the installation appeared to succeed, and the perl script appeared to access the clipboard.

Follow-up Question

Am I using the .xs file in the intended manner? My guess would be that the .xs file might be a version of the pm file, made for people that don't have C++ on their systems. Is it supposed to be renamed as a .pm file, or am I doing something weird?


In reply to Re: How do I use a module? by JDoolin
in thread 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.