In perl , when will you use system and exec command?

  1. (system cmd)When I don’t want to explicitly capture the output and return the control to perl script. (exec cmd) When I want to capture the output and don want to return back to the perl script

  2. (exec cmd)When I don’t want to explicitly capture the output and return the control to perl script. (system cmd) When I want to capture the output and don want to return back to the perl script

  3. (system cmd)When I want to execute system commands only (exec cmd) When I want to execute non system commands only

  4. (exec cmd)When I want to execute system commands only (system cmd) When I want to execute non system commands only


Correct Option: A

Find more quizzes: