Does the system() function return a value (outside of the expected output to stdout)?The system function does not return expected output to stdout, but the exit status of the command.
If you want to retrieve the external command expected output, you would have to use the backticks, for example:
or the qx operator.my $output = `$system_command`;
In reply to Re: does system() return a pid?
by Laurent_R
in thread does system() return a pid?
by sciguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |