From: Jamie C. <jca...@we...> - 2011-01-10 22:15:30
|
On 10/Jan/2011 13:07 Jeffrey Kesselman <je...@np...> wrote .. > This runs, but both $result and $err have nothing in them when I print them. > > Why? This is on OpenSolaris: > > sub get_reddwarf_status > { > my $result; > my $err; > execute_command("echo test",undef,$result,$err); > print STDERR "result: ",$result,"\n"; > print STDERR "err: ",$err,"\n"; > return $result; > } You need to pass in references, like : execute_command("echo test",undef,\$result,\$err); - Jamie |