in reply to Re: Running Perl with Cygwin
in thread Running Perl with Cygwin

I appreciate the question / clue. I was using two different perls. I added the below line to my perl script to use the same perl.exe:

#!/cygdrive/c/Perl/bin/perl.exe

Then I used the below line in cygwin to run it.

./test.pl

That worked. Once we pointed the perl script to the correct interpreter the scripted processed.

Thanks!!!!!

Replies are listed 'Best First'.
Re^3: Running Perl with Cygwin
by roboticus (Chancellor) on Jun 25, 2009 at 15:56 UTC
    cocl04:

    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...

    ...roboticus