in reply to Re^2: How can I pass argumetes to remote module function
in thread Grid::Machine
Notice how it pulls in the $p hashref of variables, so your code would be code something like:use GRID::Machine qw(is_operative); use Data::Dumper; my $machine = GRID::Machine->new(host => 'user@remote.machine.doma +in'); my $p = { name => 'Peter', familyname => [ 'Smith', 'Garcia'], age + => 31 }; print Dumper($machine->eval(q{ my $q = shift; $q->{familyname} }, $p ));
my $p = { a => 10 }; print Dumper( $machine->eval(q{ my $q = shift; print $q->{a}."Value of A\n"; # It's not working sample->function($q->{a}); }, $p));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How can I pass argumetes to remote module function
by sachinmozarkar (Initiate) on Aug 17, 2009 at 07:40 UTC |