in reply to find path to perl on windows

The easiest way to find out which Perl is being used is to ask Perl:

perl -e "print $^X"

This will tell you which Perl the OS finds first. You can also check $^X from within your Perl scripts and restart your script under a different Perl, but that is somewhat fragile.