in reply to Re^2: sh: line 1: ,: command not found
in thread sh: line 1: ,: command not found
I think command shell is trying to execute the value what you are passing to /cygdrive/c/CLISMS.exe. I think adding single quote around $val will help.
In Section
Seekers of Perl Wisdom