executable perl scripts on windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elyod72
    New Member
    • Jul 2007
    • 1

    executable perl scripts on windows

    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 ?
  • miller
    Recognized Expert Top Contributor
    • Oct 2006
    • 1086

    #2
    perldoc perlintro Running perl programs

    - Miller

    Comment

    • KevinADC
      Recognized Expert Specialist
      • Jan 2007
      • 4092

      #3
      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

      Working...