in reply to getting multiple return values from system()

If you want the output of a command, which is not really a "return value", then look at Backticks or the qx operator. Both will return you the output of the command. The exit status of the command will still be stored in $?.

  • Comment on Re: getting multiple return values from system()

Replies are listed 'Best First'.
Re^2: getting multiple return values from system()
by handarbyte (Initiate) on Jul 25, 2009 at 17:19 UTC
    As mentioned above my question was not clear. I really found what I was looking in $?. It actually is the return value of the useradd command. I thought it is from the ssh command. Getting results is not understanding them. ;-) Thank you!