Hello,

Back with the system command but with a different problem.

I am calling a program with the system command which has arguments. This program returns a string and I need to capture it.

@args("command","arg1","arg2");
$res = system(@args);

print $res;

It prints 0;

But before that it prints the string that the program or command returned..!!!
How do I capture the return value or $res as I need to work with $res further.!!


$exit_value  = $? >> 8;
This didn't help..

Thanks, :)

Reply via email to