My suggestion is actually to do some homework before you start the debugger, because it will help you figure out what you can skip over and what you need to actually watch closely. Look in Parallel.pm at line 141, and figure out how the value of $selector is assigned. See what subroutine within Parallel.pm you're in, and look in your code for where you call that particular subroutine. That's where you need to start.

Your next step is to go to here to read the Perl debugger tutorial. Are you familiar with debuggers? It allows you to execute your program one statement at a time, and inspect the values of variables. It is an invaluable aid to finding and fixing bugs. Your research will tell you where to set a breakpoint in your code; the debugger will execute the lines up to the breakpoint and stop there. Now you can inspect your variables and make sure that the value which will end up in $selector has the value you expect.

Update: looks like NetWallah has already done some of this for you. Either put a watch on $Ubuntu_ip, or set a breakpoint for line 144, the foreach my $Ubuntu_ip .... Inspect $refHashConvertArrayUbuntu to see if it has the values you expect.

Dum Spiro Spero

In reply to Re^3: Use of uninitialized value $selector in split at /usr/local/share/perl/5.18.2/Net/OpenSSH/Parallel.pm line 141. by GotToBTru
in thread Use of uninitialized value $selector in split at /usr/local/share/perl/5.18.2/Net/OpenSSH/Parallel.pm line 141. by thanos1983

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.