in reply to find path to perl on windows

The Perl executable that is executed by default will be determined by your system path (type path at the command prompt to see what it is). The path is searched in order to find executables etc. that are not specifically identified.

If you need to change the version of Perl used then you (or the administrator) will need to change the path environment variable.

perl.exe is also associated with the .pl file extension. You will want to verify that this association points to the correct version of perl. Save a perl script with the code mentioned previously (print $^X) and run it using the perl executable perl test.pl and by just entering the name of the file.

Since you mention environment variables - there are a number that can be associated with Perl. Type 'set' to view the environment. Variables that start with perl may influence the behaviour of perl on your machine.

Look at perlrun for more details.