.pl files open in notepad

I am new to xampp as well, I am new to Perl programming. I just tried to open the file C: \ xampp \ cgi-bin \ printenv.pl and I made a mistake.

I chose the default program to open this file extension as Notepad, with an option always use the selected program to open this kind of file.

Now, when I try to run .pl files from cmd, it opens in Notepad instead of executing. Answer please. Thanks in advance.

+5
source share
2 answers

At the command prompt, enter the following:

assoc .pl=PerlScript
ftype PerlScript="c:\...\bin\perl.exe" "%1" %*

(Replace ...with the correct path.)

+9
source

ikegami Windows 10, ActivePerl..pl , Notepad . :

  • .pl
  • " " " "
  • " .pl" ( - , )
  • " ", " ", " ".
  • C:/path/to/perl/bin/ Perl5.16.3.exe ( , , Perl : Perl.exe)

Perl .pl, Perl , .

+2

All Articles