I need to invoke a perl script from cygwin but the script should be using the Windows perl and not cygwin perl.
# From Cygwin:
# This is correctly running under windows perl
cmd /c foo.pl
# foo's heirarchy
foo.pl
|--------> bar_1.pl
|--------> bar_2.pl
|--------> foobar/foobar.pl
As you see, foo.pl invokes a number of perl scripts internally. I want all of those to be run under Windows perl. What is happening is that foo.pl runs under Windows but all its children still run under cygwin perl. And unfortunately, I do not have the luxury of modifying foo.pl
So, how do I ensure that all the children perl scripts run under Windows perl? I know this is a