ActivePerl. .pl files no longer execute but open in Notepad instead

前端 未结 3 771
谎友^
谎友^ 2020-12-21 15:25

I have perl scripts which were running in Windows 7 just fine as of this morning. I made the mistake of using NotePad as the default for opening/editng my .pl files. Now,

3条回答
  •  温柔的废话
    2020-12-21 15:33

    Sounds like your .pl extention association is now set to Notepad rather than perl.exe. If you are too busy to fix that, just type "perl yourscript.pl" in a command promot window to start the perl interpreter and to send your script to it to run.

    See this answer to fix the association:

    File Type .pl Association and Using cmd.exe to Run the Script

提交回复
热议问题