in reply to Copying and Running PERL SCRIPTS in Parallel

What error message do you get? Are you sure that @hosts contains the right data?

use Data::Dumper; print Dumper(\@hosts);
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Replies are listed 'Best First'.
Re^2: Copying and Running PERL SCRIPTS in Parallel
by rahulruns (Scribe) on May 21, 2013 at 07:15 UTC

    There is no error message. The hosts has the right data. I use the code for other PERL SCRIPTS too