in reply to Re^3: using Net::OpenSSH in a MCE worker thread
in thread using Net::OpenSSH in a MCE worker thread
oops, there is a bug in that part of the code that causes it to fail silently (instead of failing with an error that tells you what has gone wrong).
Try replacing it by the following version:
sub _load_module { my ($module, $version) = @_; $loaded_module{$module} ||= do { do { local ($@, $SIG{__DIE__}); eval "require $module; 1" } or croak "unable to load Perl module $module"; 1 }; if (defined $version) { my $mv = do { local ($@, $SIG{__DIE__}); eval "\$${module}::VERSION" || 0; }; (my $mv1 = $mv) =~ s/_\d*$//; croak "$module version $version required, $mv is available" if $mv1 < $version; } 1 }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: using Net::OpenSSH in a MCE worker thread
by Andy16 (Acolyte) on Jun 28, 2013 at 12:26 UTC | |
by salva (Canon) on Jun 28, 2013 at 12:31 UTC | |
by Andy16 (Acolyte) on Jun 28, 2013 at 12:45 UTC | |
by salva (Canon) on Jun 28, 2013 at 12:48 UTC | |
by Andy16 (Acolyte) on Jul 01, 2013 at 09:02 UTC |
In Section
Seekers of Perl Wisdom