Statement unlikely to be reached at /path/to/Script.pl line 653 (#1) (W exec) You did an exec() with some statement after it other than a die(). This is almost always an error, because exec() never returns unless there was a failure. You probably wanted to use system() instead, which does return. To suppress this warning, put the exec() in a block by itself. (Maybe you meant system() when you said exec()?)