411 REFERENCE · Wikibooks
Perl Programming/Keywords/exec
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl eval exists Keywords
The exec keyword
exec executes a system command and quits the Perl program. To return back, system should be used. The only way exec returns, if the command does not exist and it is executed directly instead of via your system's command shell. In this case, it fails and returns false.
Syntax
eval EXPRESSION
eval PROGRAM LIST
Examples
exec ('foo') or print STDERR "couldn't exec foo: $!";
See also
system
Perl eval exists Keywords