http://qs321.pair.com?node_id=140522


in reply to win32 perl script when you don't know where perl is

Using the Perl Power Tools: Unix Reconstruction Project, there is a perl-only version of 'which' that might help.

You might be able to take this, and build off of it to run your code. Of course, if you have '.pl' in your PATHEXT environment variable on windows, you can just run perl scripts without the '.pl' extension, assuming that perl is in your path, which the installer normally sets.