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.
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.
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.
Type the following at a shell prompt:
assoc .pl=PerlScript
ftype PerlScript="c:\...\bin\perl.exe" "%1" %*
(Replace ...
with the correct path.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With