in reply to Re^2: Use of uninitialized value $selector in split at /usr/local/share/perl/5.18.2/Net/OpenSSH/Parallel.pm line 141.
in thread Use of uninitialized value $selector in split at /usr/local/share/perl/5.18.2/Net/OpenSSH/Parallel.pm line 141.
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Use of uninitialized value $selector in split at /usr/local/share/perl/5.18.2/Net/OpenSSH/Parallel.pm line 141.
by thanos1983 (Parson) on Jan 29, 2015 at 23:10 UTC | |
by poj (Abbot) on Jan 30, 2015 at 09:16 UTC | |
by thanos1983 (Parson) on Jan 30, 2015 at 12:29 UTC |