in reply to Use of uninitialized value $selector in split at /usr/local/share/perl/5.18.2/Net/OpenSSH/Parallel.pm line 141.

The $selector is the first argument passed to:
$pssh->push($SELECTOR,....);
It looks like that value is undef, possibly somewhere in your code like at :
$pssh->push($Ubuntu_ip , parsub => \&ubuntu , @Ubuntu_cmds);
Are you sure that $Ubuntu_ip has a value ?

Perhaps you could add debugging statements, or run under the perl debugger.

        "You're only given one little spark of madness. You mustn't lose it."         - Robin Williams

  • Comment on Re: 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^2: 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 07:29 UTC

    Hello NetWallah,

    Thank you for your time and effort, reading and replying to my question. Well unfortunately the code works just fine, so I do not know where this warning comes from. I have added all the modules that I am using just in case that someone want to experiment.

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