I just switched to Windows 8 with Strawberry perl.

So I installed a couple of modules via Stawberry perl´s cpan, and I´m getting errors and warning left and right.

As an example, I am trying to hook up a LeapMotion to perl using the company provided Device::Leap, and get errors like:

Use of uninitialized value $BUFF in string eq at C:/Strawberry/perl/si +te/lib/Device/Leap.pm line 40. substr outside of string at C:/Strawberry/perl/site/lib/Device/Leap.pm + line 115.

Which seems odd, considering that that module is not doing anything fancy - just a bit of socket reading. The authors even explicitly turned on warnings and strict, so they would have seen these errors, too.

Even more shockingly, I´m trying to talk to an Arduino using Win32::SerialPort, and I get errors like:

Second Write attempted before First is done at ServoJoy.pl line 55. Use of uninitialized value $written in numeric ne (!=) at C:/Strawberr +y/perl/site/lib/Win32/SerialPort.pm line 1580.

Apart from the fact that serial communications arent working, the "uninitialized value" error seems out-of place for such a popular module.

On a hunch, I tried running the same programs from an elevated command window, but I get the same errors.

Is there something I am missing? Is this a Win8.1 issue? Some new perl version thing?

Edit: For future readers: Most of the issues seem to have disappeared after I switched to 32-bit Strawberry perl. Seems that Win32::SerialPort doesnt like 64bit perl. I would've thought that that isn't an issue anymore, but it is.


In reply to Strange errors in CPAN modules when running on Windows 8.1 by schweini

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.