Dear Monks:

This is the shortest Perl program I have ever posted to as for advice on:

use Device::USB;

That's it!

The error is repeated 3 times and says:

 Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/Device/USB.pm line 10.

Line 9,10,11 of the referenced module say:

9 use Inline ( 10 C => "DATA", 11 ($ENV{LIBUSB_LIBDIR}

I am using Kubuntu desktop 13.10 and I confess I may have screwed up by doing a "cpan install Device::USB". That did not do a complete install. I had forgotten that it should be apt-get install libdevice-usb-perl. I did that and some earlier errors went away, but not this one. So I did and cpan uninstall Device::USB. That did not complete well. I also did an apt-get install libusb-1.0.0, which went well and an apt-get install libusb-1.0.0-dev which told me everything was up to date

I thought it might be that the Inline module is required but not installed. I did a three line program:

use strict; use warnings; use Inline;

and there were no complaints so I have to assume that is not the problem

Your advice is, as always, appreciated, Best regards


In reply to Device::USB gives "Use of uninitialized value in concatenation" error by holandes777

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.