Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perl not running in Windows 10

I've just downloaded ActivePerl for Windows 10 on my 64 bit laptop, but when I go to the command prompt, perl -v fails unless the directory is C:\Perl64\bin in which case it tells me that I have Perl 5.20.2 Copyright Larry Ullman etc, but if I try and open perl files anywhere, nothing happens, if I run perl.exe it just shows me a command window with a flashing bar and nothing happens, and when I try and run .pl programs in Eclipse it tells me predictably that because perl-v failed it won't run.

What can I do to get .pl files running?

like image 293
Qiri Avatar asked Feb 08 '23 04:02

Qiri


1 Answers

You must create a file association between the .pl file extension and the Perl runtime.

At a command prompt type the following.

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

Choose perl.exe or wperl.exe, depending on your need to get a visible command window.

like image 95
danvy Avatar answered Feb 11 '23 22:02

danvy