I have installed activeperl and have several scripts that I want to execute. When I double click on them they simply open in notepad. How do I make then executable ?
executable perl scripts on windows
Collapse
X
-
-
If you want to run them by clicking on them, you have to associate the .pl extension with the wperl.exe application. wperl.exe should be in the c:\perl\bin folder. How you associate .pl with wperl.exe depends on your version of windows. Or you can go to the command line and get to the c: prompt and type:
c:\perl\bin\wpe rl.exe scriptname.pl
if you do it that way it does not matter what name the file has, it could be foo.txt and it will still run as long as it is vali perl code, but it's easy to just name your perl scripts as .pl files so you know what they are.Comment
Comment