in reply to Exec() argument format
It could be that ComLine.pl is not executable or not on your PATH. Assuming ComLine.pl is in your current working directory, you might try:
where $^X is the name of the running perl interpreter (if ComLine.pl is not in your current working directory, use an absolute path instead).exec($^X, "ComLine.pl", @args);
Update: You should also add a line something like:
immediately after the exec line, because if the exec works you should not get to the next line.die "exec failed: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Exec() argument format
by MonkPaul (Friar) on Jul 25, 2005 at 21:31 UTC | |
by radiantmatrix (Parson) on Jul 26, 2005 at 13:40 UTC |