I use perl on unix, but have a project to do on windows. I installed active perl, but getting started has been a pain. On unix, I just make the first line #!/usr/bin/perl -w, but with windows...what do i do to get a script started??
Another option (at least what worked for me) is to make sure the path to Perl.exe was in my system path. In my case, all I had to do there was add "C:\Perl\bin" (or wherever you installed Perl) to the path in the system variables part of the environment variables. Then, just because I'm lazy and don't like typing .pl every time I want to run a script, I changed the pathext system variable to include .pl. The format on those variables is pretty clear as soon as you look at them.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.