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.
in thread Use of uninitialized value $selector in split at /usr/local/share/perl/5.18.2/Net/OpenSSH/Parallel.pm line 141.

Hello GotToBTru,

Thank you again for your time and effort replying back to my question. Well I tried a few times to play around with the perl debugger, it seems to be something really good. But to be honest someone needs to spend some time to get use to it, it is not the easiest thing to play around.

Well ase you said I did my research and unfortunately the foreach my $Ubuntu_ip .... was not the error because it was printing normally.

So the next step I thought that I was not able to close the fileHandles so I used die conditions instead of warnings for debugging at least. My assumption was wrong again, then I start printing the process step by step manually and I noticed that I was passing empty values on my objects and I was not able to understand why.

Then as I final step I remember that when I was passing a value to an object I had to use reference to the value. So when I used references where was needed it worked perfectly.

I guess the process would have been extremely faster with a debugger instead of doing it manually, thank you for the proposal I will try to start applying it from now on.

Seeking for Perl wisdom...on the process of learning...not there...yet!
  • Comment on Re^4: Use of uninitialized value $selector in split at /usr/local/share/perl/5.18.2/Net/OpenSSH/Parallel.pm line 141.
  • Select or Download Code

Replies are listed 'Best First'.
Re^5: Use of uninitialized value $selector in split at /usr/local/share/perl/5.18.2/Net/OpenSSH/Parallel.pm line 141.
by poj (Abbot) on Jan 30, 2015 at 09:16 UTC

    Maybe a little less code would have made it easier also :-)

      Hello poj,

      Thank you for your time and effort, it looks much better than mine, I will update my approach. There are so many things that I need to learn. :D

      Seeking for Perl wisdom...on the process of learning...not there...yet!