If changing the shebang to that made your script work, then I assume you're running a bash shell. But from the thread, I thought you wanted to run the cygwin version of perl. Unless you've got an unusual configuration, you're not running the cygwin version...
...roboticusIn reply to Re^3: Running Perl with Cygwin
by roboticus
in thread Running Perl with Cygwin
by cocl04
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |