in reply to Re: How can I pass arguments to remote module function
in thread Grid::Machine

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on Re^2: How can I pass argumetes to remote module function

Replies are listed 'Best First'.
Re^3: How can I pass argumetes to remote module function
by james2vegas (Chaplain) on Aug 17, 2009 at 07:07 UTC
    from the documentation:
    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 ));
    Notice how it pulls in the $p hashref of variables, so your code would be code something like:
    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));
      Thanks for your support, It's working now
Re^3: How can I pass argumetes to remote module function
by moritz (Cardinal) on Aug 17, 2009 at 06:51 UTC
    The documentation already provides an example - what's wrong with it?