I think the bug is in your code: exec does not honour the PATH variable (see exec - PATH isn't mentioned anywhere). If you really want to use exec, give the full path (and the extension) of the perl.exe you want to use.
In reply to Re^5: exec not working?
by rovf
in thread exec not working?
by UVB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |