Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.pl files open in notepad

I am new to xampp, and also, 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 that file extension as Notepad, with the option always use the selected program to open this kind of file.

Now when I try to run .pl files from cmd it opens them in Notepad instead of executing. Please reply. Thanks in advance.

like image 850
bunty Avatar asked Jun 13 '12 04:06

bunty


People also ask

What is .PL format?

What is a PL file? A file with . pl extension is a Perl Script file that is a scripting language. These are compiled and run using Perl Interpreter software. A PL script file contains lines of code, variables, and comments.

How do I open a Perl file?

Perl open file function You use open() function to open files. The open() function has three arguments: Filehandle that associates with the file. Mode : you can open a file for reading, writing or appending.


1 Answers

Type the following at a shell prompt:

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

(Replace ... with the correct path.)

like image 135
ikegami Avatar answered Oct 15 '22 17:10

ikegami