http://www.perlmonks.org?node_id=304051


in reply to Response from system or Exec

Just an addition, since you're mentioning exec() in the subject of your question.

While system() returns a value, be aware that exec() never returns, but replaces your program with the one you are calling using exec().

Michele.