I installed active perl on my win2k12 server, I want to run a perl script but it showing this message, 'C:/Perl64/bin/' is not recognized as an internal or external command,operable program or batch file.I change environment variable path like C:\Perl\bin,C:\Perl\site\bin,C:\Perl64\bin.but what ever path i changed same path is not recognised as an internal or external command.
A) the script to be run
Have a look at the script you want to run. Most probably, the first line will look like
or similar. Change the forward slashes to backslashes and try again.
Of course, the shebang above misses the executable binary. So if it is missing from your script, change it to
if you want to have Perl output warnings.
B) your Perl installation
Have a look at
C:\Perl64\bin\ respectively. Do both exist? If not, change the shebang in your script to
I was assuming that you simply run or double click
script.pl. If you want to tell Windows to run that script with a certain application (Perl, in your case), run your script via
C:\Perl64\bin\perl.exe -w C:\path\to\your\script.pl
Actually it was an environment variable issue. I was using Oracle 11g r2. and its path didn't have oracle name in it. I am searching "oracle" word from perl script into environment variable, but I was getting the first path which was perl path, so perl was failing to run. The issue is solved. Thank you so much, stueja.